On Wed, May 5, 2010 at 3:22 PM, Glen Lumanau <glen@lumanau.web.id> wrote: > I tried > > server { > listen 80; > server_name yahoo.example.com; > > rewrite ^.+ http://www.example.com/site/yahoo$uri last; > } > > However it's not rewrited. It's being redirected to http://www.example.com/site/yahoo > > welby edogawaconan - Nginx Mailing List - English
On Wed, May 5, 2010 at 3:09 PM, Glen Lumanau <glen@lumanau.web.id> wrote: > Hi folks, > > > > I need a rewrite rules like this > > > > I have www.example.com, google.example.com, yahoo.example.com > > > > I need to rewrite > > Google.example.com à www.example.com/site/google > > Yahoo.example.com à www.example.com/site/yahoo > > &gby edogawaconan - Nginx Mailing List - English
On Fri, Apr 30, 2010 at 6:50 PM, niraj.kumar <nginx-forum@nginx.us> wrote: > So please suggest and try asking in centos/linux forum > if it can then kindly suggest link to configure thin client server and > client with FreeNX. > http://wiki.centos.org/HowTos/FreeNX -- O< ascii ribbon campaign - stop html mail - www.asciiribby edogawaconan - Nginx Mailing List - English
On Tue, Apr 27, 2010 at 7:01 PM, Rafa Pedroche <lists@ruby-forum.com> wrote: > Hi all, > > I have read all the topics in the forum related with problems > nginx<->phpmyadmin but I cannot fix this ... > > PHP works ok (phpinfo test working) but when access phpmyadmin I get the > following error: > > "Error: Cannot start session without errors please checkby edogawaconan - Nginx Mailing List - English
On Sun, Apr 25, 2010 at 4:11 AM, ThomasH <outnow.ch@gmail.com> wrote: > i also ran into this problem on opensolaris (svn_111) using the svn > php-fpm (both trunk and 5_3 branch). the only workaround seems to be > to uninstall any existing libevent (in my case SUNWlibevent v1.3.x), > and compile libevent 1.4.13 using --PREFIX=/usr > > all variations of --with-libevent-dir=DIby edogawaconan - Php-fpm Mailing List - English
On Tue, Apr 20, 2010 at 12:57 AM, Tomasz Pajor <nikon@puffy.pl> wrote: > >> A generic method: >> >> location / { >> root /vhosts/default/test; >> try_files $uri $uri/ @fallback; >> } >> >> location @fallback { >> fastcgi_pass unix:/var/run/spawn-fcgi.sock; >> ... >> } >> > > This seems toby edogawaconan - Nginx Mailing List - English
On Mon, Apr 19, 2010 at 7:54 PM, Tomasz Pajor <nikon@puffy.pl> wrote: > Hello, > > Got something like this, but the break seams to not work, > and the file is being processed by the php fastcgi process. > > Any clue why? > to put it short: (most likely) you're doing it wrong. -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org _____________________by edogawaconan - Nginx Mailing List - English
On Mon, Apr 12, 2010 at 12:02 PM, lhmwzy <lhmwzy@gmail.com> wrote: > apache .htaccess > > Rewriteengine on > Rewriteengine ^search\.shtml$ /search.cgi%{QUERY_STRING} > Rewriteengine ^([^.]*)/([^.]*)/([^.]*]\.html$ index.cgi?t=$1&c1=$1&p=$3 > location = /search.shtml { rewrite ^ /search.cgi?$args; } location ~ ^[^.]*/[^.]*/[^.]*\.html$ { rewrite ^/([^.]*)/(by edogawaconan - Nginx Mailing List - English
On Mon, Apr 12, 2010 at 9:52 AM, Leonardo Crespo <leo@leocrespo.com> wrote: >> 1) Shared filesystem between the two hosts to hold the static content > > I just found out that I can do that on linode. Thanks for bringing this idea up! > > Here's a solution: > Using NFS, mount on the Dynamic server the Static server's directory > for static files (/images /user-uploadsby edogawaconan - Nginx Mailing List - English
On Sat, Apr 10, 2010 at 10:33 PM, AMP Admin <admin@ampprod.com> wrote: > > > > is there a way to make it longer? > bcrypt ($2a$...) passwords can be used - on FreeBSD, at least. -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby edogawaconan - Nginx Mailing List - English
On Thu, Apr 8, 2010 at 6:04 PM, Chris Cortese <cortese.consulting@gmail.com> wrote: > thanks, but still no luck, still looping. > which version did you try? -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby edogawaconan - Nginx Mailing List - English
On Thu, Apr 8, 2010 at 3:44 PM, Chris Cortese <cortese.consulting@gmail.com> wrote: > I'm still stumped on this one. Can anyone tell why I'm getting an endless > loop? Firefox gives: > > > The page isn't redirecting properly > > Firefox has detected that the server is redirecting the request for this > address in a way that will never complete. > * This pby edogawaconan - Nginx Mailing List - English
On Wed, Apr 7, 2010 at 5:40 PM, Leonardo Crespo <leo@leocrespo.com> wrote: > I'd to enable the php extension (/foo/page.php) when the url is > domain.com.au/portal/admin* > > Here's my failed attempt and the error I'm getting. I'll make sure to > keep reading as much as possible and not to ask questions that are > already answered. > > ------------------- > locatby edogawaconan - Nginx Mailing List - English
On Wed, Apr 7, 2010 at 4:10 PM, Leonardo Crespo <leo@leocrespo.com> wrote: > Hi Edho, thanks. > > Igor mentioned i should keep this to avoid serving php as static files. > > location ~ \.php$ > { > fastcgi_pass 127.0.0.1:9000; > fastcgi_intercept_errors on; > fastcgi_index index.php; &gby edogawaconan - Nginx Mailing List - English
On Wed, Apr 7, 2010 at 3:58 PM, Leonardo Crespo <leo@leocrespo.com> wrote: > Wow, very elegant Igor. Thank you, it works beautifully. > > Could you help with the last bit? > > I'd like to return 404 if the user tries /foo/page.php instead of /foo/page > location / { try_files $uri @php; } location @php { try_files $uri.php $uri/ =404; fastcgi_pass 127.0.0.1:9000; faby edogawaconan - Nginx Mailing List - English
2010/4/7 Igor Sysoev <igor@sysoev.ru>: > location / { > try_files $uri $uri.php $uri/ =404; > > fastcgi_pass 127.0.0.1:9000; > fastcgi_intercept_errors on; > fastcgi_index index.php; > include /usr/local/nginx/conf/fastcgi_params; > fastcgi_param SCRIPT_FILENby edogawaconan - Nginx Mailing List - English
On Fri, Mar 26, 2010 at 6:48 AM, Luka Horvatic <lists@ruby-forum.com> wrote: > That command in apache htaccess allows to read htm files as php,so then > you can load php file with extension htm.How do i enable this on nginx? > -- location ~ \.htm$ { fastcgi_pass ... ... } -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org __________________________________by edogawaconan - Nginx Mailing List - English
On Thu, Mar 18, 2010 at 7:01 AM, ppnx <nginx-forum@nginx.us> wrote: > I could not find the information on the web or in the wiki, so I try this list. I am the user of a free hosting service using nginx. So I cannot acces or edit conf files myself, but I can ask the admin and he will do it for me. > > Basically, I want to protect whole folders. I think that I have managed to do thatby edogawaconan - Nginx Mailing List - English
On Sun, Feb 28, 2010 at 7:54 PM, sam77am <nginx-forum@nginx.us> wrote: > > I am using nginx as proxy...please suggest what changes needs to be done. > unless there's another server block in /etc/nginx/conf.d/*.conf, then surely it'll show same page for any domain. -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org _____________________________________________by edogawaconan - Nginx Mailing List - English
On Sat, Feb 27, 2010 at 4:32 PM, ultrawind <nginx-forum@nginx.us> wrote: > I 'm sorry for my bad english, i hope you can help me. > > I already setup the nginx and php. > > while i visit "http://localhost/myweb" > > the server return "Internet Explorer cannot display the webpage" > > while i visit "http://localhost/myweb/" > > thby edogawaconan - Nginx Mailing List - English
I noticed despite having set error_log /path/to/error.log, whenever I signal my nginx process either with "nginx -c /path/to/nginx.conf -s reload" or "kill -HUP <pid_of_nginx_master>", it writes log to error log file defined at compile time (in my system - freebsd - it's at /var/log/nginx-error.log). Is it not possible to change the path used? -- O< ascii ribbon camby edogawaconan - Nginx Mailing List - English
On Sat, Feb 20, 2010 at 8:45 PM, Glen Lumanau <glen@lumanau.web.id> wrote: > Is that posibble to detect if (.+) is numbers only? > yes. the method should be mentioned in any guide about regular expressions. Which includes this [1] and this [2]. [1] http://www.regextester.com/pregsyntax.html [2] http://www.regular-expressions.info/reference.html -- O< ascii ribbon campaign - stby edogawaconan - Nginx Mailing List - English
On Sat, Feb 20, 2010 at 8:17 PM, Glen Lumanau <glen@lumanau.web.id> wrote: > Bump.. > you should start learning writing rewrite rules... rewrite ^/news/(.+)/title http://app.mydomain.com/redirect/application/$1 permanent; _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby edogawaconan - Nginx Mailing List - English
On Tue, Feb 16, 2010 at 7:28 PM, Jaime Magiera <jaime@sensoryresearch.net> wrote: > OK, I appreciate all your help. It seems I've messed things up even more now. While attempting to translate what you folks provided, I've now got a configuration that doesn't work right even with standard wordpress links. If I try to go to the default URL for the blog, I end up getting a download of the phby edogawaconan - Nginx Mailing List - English
On Sat, Feb 13, 2010 at 7:58 AM, merlin corey <merlincorey@dc949.org> wrote: > On Tue, Feb 9, 2010 at 4:58 PM, Edho P Arief <edhoprima@gmail.com> wrote: >> it doesn't cover when the wordpress installation is in >> /some/where/wordpress and need to be accessible under >> www.myweb.com/blog, not www.myweb.com/wordpress . >> > > Actually, this one does: &gby edogawaconan - Nginx Mailing List - English
On Wed, Feb 10, 2010 at 6:37 AM, merlin corey <merlincorey@dc949.org> wrote: > > http://wiki.nginx.org/Wordpress > > No need for symlinks, and a million ways to do things. Still need to > add in that supercache config I wrote like a year ago for someone but > I want to test it first :P~. > it doesn't cover when the wordpress installation is in /some/where/wordpress anby edogawaconan - Nginx Mailing List - English
On Tue, Feb 9, 2010 at 2:21 PM, Edho P Arief <edhoprima@gmail.com> wrote: > wordpress is pretty smart in handling rewrites > > here's example for wordpress installation in a root of a domain: > > server { > listen 80; > server_name my.blog.com; > location ~ ^/.*\.php$ { > root /srv/http/wordpress; > fastcgi_pass 127.0.0.1:9100; > fastcgi_by edogawaconan - Nginx Mailing List - English
On Tue, Feb 9, 2010 at 7:09 AM, Jaime Magiera <jaime@sensoryresearch.net> wrote: > Hello, > > This is a really basic question. I'm unfamiliar with nginx (didn't even know it existed until a couple days ago) and not a master at URL rewrites. I have been tasked with hooking up Wordpress to nginx. The basic setup was easy enough. However, I'm running into some problems with the rewriteby edogawaconan - Nginx Mailing List - English
On Mon, Feb 1, 2010 at 2:41 PM, 任晓磊 <julyclyde@gmail.com> wrote: > Sorry for typo. > > I set "listen 80; listen [::]:80;" , got ": bind() to [::]:80 > failed (98: Address already in use)" > > I set " listen [::]:80; listen 80;", got ": bind() to > 0.0.0.0:80 failed (98: Address already in use)" > > In one word, theby edogawaconan - Nginx Mailing List - English
On Mon, Feb 1, 2010 at 2:31 PM, 任晓磊 <julyclyde@gmail.com> wrote: > The default "listen 80" doesn't order nginx to listen on a IPv6 > address. I cannot understand this. > > At last, I use > listen [::]:80 default ipv6only=on; > listen 80; > to order nginx serve on ipv4 and ipv6. > > A single "listen [::]:80;" makes it listen only on ipv6 adby edogawaconan - Nginx Mailing List - English