Alias does not work with php

Edho Arief edho at
Sat Dec 17 15:32:07 UTC 2011

On Sat, Dec 17, 2011 at 9:58 PM, tapir <nginx-forum at> 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.

combining alias and fastcgi (php) is the fastest way to get headache.
Go with symlink instead.

O< ascii ribbon campaign - stop html mail -

More information about the nginx mailing list