${uri}index.php causing error.

Leonardo Crespo leo at leocrespo.com
Thu Apr 8 03:08:25 MSD 2010


I've searched the wiki for this issue and I wasn't able to solve it,
can anyone help?

I'm assuming nginx is getting lost with the {} on ${uri}....

This line
>try_files $uri.php ${uri}index.php =404;

Is giving me this error:
>Starting nginx: [emerg]: directive "try_files" is not terminated by ";" in /usr/local/nginx/sites-enabled/domain.com.au:27

If I remove "${uri}index.php" then it starts fine. This is the context:

location @php {
		try_files $uri.php ${uri}index.php =404;
		fastcgi_intercept_errors on;
		fastcgi_index index.php;
		include /usr/local/nginx/conf/fastcgi_params;
		fastcgi_param SCRIPT_FILENAME

Thanks in advance


More information about the nginx mailing list