atom feed17 messages in ru.sysoev.nginxRe: Alias does not work with php
FromSent OnAttachments
tapirDec 17, 2011 1:42 am 
Maxim DouninDec 17, 2011 4:55 am 
tapirDec 17, 2011 6:46 am 
tapirDec 17, 2011 6:58 am 
Edho AriefDec 17, 2011 7:31 am 
tapirDec 17, 2011 8:04 am 
Edho AriefDec 17, 2011 8:35 am 
Edho AriefDec 17, 2011 8:36 am 
tapirDec 17, 2011 8:53 am 
Valentin V. BartenevDec 17, 2011 9:11 am 
tapirDec 17, 2011 9:21 am 
Edho AriefDec 17, 2011 9:37 am 
tapirDec 18, 2011 7:03 am 
tapirDec 18, 2011 7:17 am 
Edho AriefDec 18, 2011 8:18 am 
tapirDec 18, 2011 8:34 am 
António P. P. AlmeidaDec 18, 2011 9:26 am 
Subject:Re: Alias does not work with php
From:Valentin V. Bartenev (ne@vbart.ru)
Date:Dec 17, 2011 9:11:29 am
List:ru.sysoev.nginx

On Saturday 17 December 2011 18:58:59 tapir wrote:

I've added "fastcgi_param SCRIPT_FILENAME $document_root/wordpress$fastcgi_script_name;" and now it works.

As you might predict "$document_root/wordpress" is the alias for "location /". So what's the correct way of doing this? I mean I have other aliases as well and I would like php to work with those also.

Why don't you just use the "root" directive?

root /patch/to/wordpress;

location / { ... }

and respectively:

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;