Welcome! Log In Create A New Profile

Advanced

Re: Location not called properly

October 24, 2011 07:02AM
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;
}
Subject Author Posted

Location not called properly

TECK October 23, 2011 04:13PM

Re: Location not called properly

Francis Daly October 23, 2011 07:34PM

Re: Location not called properly

TECK October 24, 2011 07:02AM

Re: Location not called properly

Francis Daly October 24, 2011 04:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 49
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready