${uri}index.php causing error.
Leonardo Crespo
leo at leocrespo.com
Thu Apr 8 14:55:38 MSD 2010
G'day mate!
> Curly brackets aren't allowed outside quoted strings as they
> denote configuration blocks.
Ah that's why! So can I use either one of the 2 options? Care to
explain the - and + signs in front of try_files? They're not on the
wiki too.
Cheers!
Leo
On Thu, Apr 8, 2010 at 7:01 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> Hello!
>
> On Thu, Apr 08, 2010 at 09:08:25AM +1000, Leonardo Crespo wrote:
>
>> 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
>
> - try_files $uri.php ${uri}index.php =404;
> + try_files $uri.php "${uri}index.php" =404;
>
> Curly brackets aren't allowed outside quoted strings as they
> denote configuration blocks.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
More information about the nginx
mailing list