Valentin V. Bartenev
December 17, 2011 12:14PM
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;


wbr, Valentin V. Bartenev

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

Alias does not work with php

tapir December 17, 2011 04:43AM

Re: Alias does not work with php

Maxim Dounin December 17, 2011 07:56AM

Re: Alias does not work with php

tapir December 17, 2011 09:46AM

Re: Alias does not work with php

tapir December 17, 2011 09:58AM

Re: Alias does not work with php

tapir December 17, 2011 11:05AM

Re: Alias does not work with php

tapir December 17, 2011 11:54AM

Re: Alias does not work with php

tapir December 17, 2011 12:21PM

Re: Alias does not work with php

Edho Arief December 17, 2011 10:34AM

Re: Alias does not work with php

Edho Arief December 17, 2011 11:38AM

Re: Alias does not work with php

Edho Arief December 17, 2011 11:38AM

Re: Alias does not work with php

Valentin V. Bartenev December 17, 2011 12:14PM

Re: Alias does not work with php

Edho Arief December 17, 2011 12:40PM

Re: Alias does not work with php

tapir December 18, 2011 10:04AM

Re: Alias does not work with php

tapir December 18, 2011 10:17AM

Re: Alias does not work with php

tapir December 18, 2011 11:35AM

Re: Alias does not work with php

Edho Arief December 18, 2011 11:20AM

Re: Alias does not work with php

António P. P. Almeida December 18, 2011 12:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
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