Welcome! Log In Create A New Profile

Advanced

Strange try_files behaviour

July 11, 2014 03:36PM
Simple php config (nginx 1.7.4 development);

server {
[...]
location ~ \.php$ {
try_files $uri $uri/ =404;
index index.html index.htm index.php;
fastcgi_ignore_client_abort on;
fastcgi_pass myLoadBalancer;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location / {
try_files $uri $uri/ =404;
index index.html index.htm;
}
}

None existing file:
"GET /viewforum.pp?f=3 HTTP/1.1" 404 180 "-"
a proper 404 from nginx.

However a different approach also with a none existing file:
"GET /viewforu.php?f=3 HTTP/1.1" 404 56 "-"
returns a 404 from the backend and a 'no input file specified'

Neither files exist yet the second test is going past try_files.

Anyone any idea if this is a config issue or a bug?

---
nginx for Windows http://nginx-win.ecsds.eu/
Subject Author Posted

Strange try_files behaviour

itpp2012 July 11, 2014 03:36PM

Re: Strange try_files behaviour

Maxim Dounin July 11, 2014 04:12PM

Re: Strange try_files behaviour

itpp2012 July 11, 2014 05:42PM

Re: Strange try_files behaviour

Valentin V. Bartenev July 11, 2014 06:08PM

Re: Strange try_files behaviour

itpp2012 July 11, 2014 06:21PM

Re: Strange try_files behaviour

itpp2012 July 12, 2014 06:23AM

Re: Strange try_files behaviour

Maxim Dounin July 13, 2014 05:16PM

Re: Strange try_files behaviour

itpp2012 July 13, 2014 05:46PM

Re: Strange try_files behaviour

Maxim Dounin July 13, 2014 06:22PM

Re: Strange try_files behaviour

itpp2012 July 14, 2014 12:44PM

Re: Strange try_files behaviour

itpp2012 July 15, 2014 05:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 270
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready