Re: Minimal configuration

2014-02-16 Thread B.R.
Thanks for you time, Francis. I understand the loop cycles (and thanks for the clarification about $uri content). If I may, there is still a little something bothering me: The condition required for a loop to be created is that $uri (= /) doesn't match any file, thus redirecting and trying again.

Re: 1.5.10 doesn't like curl -I

2014-02-16 Thread Francis Daly
On Mon, Feb 17, 2014 at 10:41:25AM +1300, Steve Holdoway wrote: Hi there, > added. I've reverted to the stock 1.4.5 for the minute, but would like > guidance as to where to look for the problem. What happens if you omit the third-party modules? f -- Francis Dalyfran...@daoine.o

Re: Minimal configuration

2014-02-16 Thread Francis Daly
On Sun, Feb 16, 2014 at 11:00:07PM +0100, B.R. wrote: Hi there, > Right, I did not pay attention to that. I think you're still not understanding it. > However, when requesting the root (by typing b.cd in the browser), $uri > should be empty, thus why can't '$uri/' act as '/' and redirect accord

Re: Minimal configuration

2014-02-16 Thread B.R.
Right, I did not pay attention to that. However, when requesting the root (by typing b.cd in the browser), $uri should be empty, thus why can't '$uri/' act as '/' and redirect accordingly? --- *B. R.* ___ nginx mailing list nginx@nginx.org http://mailman

Re: rewrite except one directory

2014-02-16 Thread Francis Daly
On Sun, Feb 16, 2014 at 09:54:47PM +0100, Philipp Kraus wrote: > Am 16.02.2014 um 21:38 schrieb Jim Ohlstein : Hi there, This location... > location ^~/scripts. does not match this request... > with http://myserver/scripts/myscript.php and myscript.php is downloaded So depending on the fu

1.5.10 doesn't like curl -I

2014-02-16 Thread Steve Holdoway
I've built up a version of 1.5.10 on amazon linux 2013.09 which supports spdy and ngx_pagespeed... configure looks like this: ./configure --prefix=/etc/nginx \ --sbin-path=/usr/sbin/nginx \ --conf-path=/etc/nginx/nginx.conf \ --error-log-path=/var/log/nginx/error.log \ --http-log-path=/var/log/ngi

Re: Minimal configuration

2014-02-16 Thread Francis Daly
On Sun, Feb 16, 2014 at 08:43:45PM +0100, B.R. wrote: Hi there, > try_files $uri $uri/; The final argument to "try_files" is special. > Requesting b.cd in the browser ends up wth a HTTP 500 error: > '[error] 12345#0: *42 rewrite or internal redirection cycle while > internally red

Re: rewrite except one directory

2014-02-16 Thread Philipp Kraus
Hi, Am 16.02.2014 um 21:38 schrieb Jim Ohlstein : > With a nested location, or, if all the contents of /home/www/content/scripts > are PHP scripts, use a fastcgi_pass. > > Remember, all requests are handed by one location, and one location only. > Writing instructions for how to handle PHP scr

Re: rewrite except one directory

2014-02-16 Thread Jim Ohlstein
Hello, On 2/16/14, 2:57 PM, Philipp Kraus wrote: Hi thanks for your answer, seems to be working == location ^~ /scripts/ { # do your /scripts/ stuff } location / { # do everything else } == I have defined my script location with: location ~ \.php$ { fastcgi_pass 127.0.0.1:

Re: rewrite except one directory

2014-02-16 Thread Philipp Kraus
Hi thanks for your answer, seems to be working > == > location ^~ /scripts/ { > # do your /scripts/ stuff > } > location / { > # do everything else > } > == I have defined my script location with: location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; include /etc/nginx/fastcgi

Re: Minimal configuration

2014-02-16 Thread B.R.
Thanks for your input Francis. What I suspected seemed old but I really don't understand the problem I am facing. Consider the following server configuration for some phpBB forum: server { listen 80; server_name b.cd; try_files $uri $uri/; root

Re: nginx mail proxy - dovecot ssl backend

2014-02-16 Thread NetCompany
dukzcry, that would be very very very nice :-) We are busy with an big change in our email environment (serving +/- 10.000 mailboxes). Currently we use Dovecot with NFS (IPsec) filesystems but we would like to change this to a firewalled dovecot backend + NginX as frontend. Looking forward to you

WSGIScriptAlias

2014-02-16 Thread Pradip Caulagi
I want to put my Django application behind Nginx. I have got it working with Apache as - WSGIScriptAlias /app /home/ubuntu/project/settings/wsgi.py What is the equivalent of this in Nginx? I have tried various options but nothing works completely. I currently have - location /app/ { rew

Nginx like Rewrite feature (.htaccess) doesn't seem to be working (Help)

2014-02-16 Thread Paulo Ferreira
Good Morning. I'm making a site and I want to make the link more usable so I used the Apache's RewriteCond which is the one I more comfortable with. I know that there are a site or two that lets me convert and so I used them, the thing is that it doesn't seem to be working neither of them. this

Re: HTTP-Post data with Tomcat

2014-02-16 Thread Francis Daly
On Sun, Feb 16, 2014 at 08:03:57AM +0100, Philipp Kraus wrote: Hi there, > I cannot update with this configuration any data, on a native connect to > Tomcat everything > works fine, so imho the proxy configuration of Nginx seems to create some > problems. What request do you make? What respon

Re: rewrite except one directory

2014-02-16 Thread Francis Daly
On Sun, Feb 16, 2014 at 07:58:33AM +0100, Philipp Kraus wrote: Hi there, > So I would like to disable the rewrite for one subfolder. I have some PHP > scripts with should not use the > rewrite call e.g. http://myserver/scripts/script1.php. All scripts with are > in the /script location should n