Alias does not work with php

tapir nginx-forum at nginx.us
Sat Dec 17 14:58:59 UTC 2011


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.

Thanks

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



More information about the nginx mailing list