Location not called properly

TECK nginx-forum at nginx.us
Sun Oct 23 20:13:37 UTC 2011


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?

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



More information about the nginx mailing list