Location not called properly

TECK nginx-forum at nginx.us
Mon Oct 24 11:02:35 UTC 2011

The fastcgi value is the name of my upstream.
The idea is: once the location  /somedir/file1.php is reached,
everything in @cache should execute.
In this way, I don't repeat several times the same code. This works:

location /somedir/file1.php {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass fastcgi;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
include fastcgi.conf;

This does not:
location = /somedir/file1.php {
try_files @cache =404;

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,217122,217174#msg-217174

More information about the nginx mailing list