Welcome! Log In Create A New Profile

Advanced

Location not called properly

October 23, 2011 04:13PM
Hi all,

I'm trying to call a location of this format:

location = /somedir/file1.php {
try_files @cache =404;
}

location = /anotherdir/file2.php {
try_files @cache =404;
}

location @cache {
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;
}

For some reason is not working, can you please let me know what is the proper syntax?
SubjectAuthorPosted

Location not called properly

TECKOctober 23, 2011 04:13PM

Re: Location not called properly

Francis DalyOctober 23, 2011 07:34PM

Re: Location not called properly

TECKOctober 24, 2011 07:02AM

Re: Location not called properly

Francis DalyOctober 24, 2011 04:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 41
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready