Welcome! Log In Create A New Profile

Advanced

${uri}index.php causing error.

April 07, 2010 07:12PM
Morning!

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_pass 127.0.0.1:9000;
fastcgi_intercept_errors on;
fastcgi_index index.php;
include /usr/local/nginx/conf/fastcgi_params;
fastcgi_param SCRIPT_FILENAME
/home/public_html/domain.com.au/public/$fastcgi_script_name;
}

Thanks in advance

Leonardo

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

${uri}index.php causing error.

leocrespo April 07, 2010 07:12PM

Re: ${uri}index.php causing error.

Maxim Dounin April 08, 2010 05:04AM

Re: ${uri}index.php causing error.

leocrespo April 08, 2010 07:00AM

Re: ${uri}index.php causing error.

Reinis Rozitis April 08, 2010 07:10AM

Re: ${uri}index.php causing error.

leocrespo April 08, 2010 07:40AM

Re: ${uri}index.php causing error.

Maxim Dounin April 08, 2010 07:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready