Welcome! Log In Create A New Profile

Advanced

Re: Alias does not work with php

Edho Arief
December 17, 2011 12:40PM
On Sun, Dec 18, 2011 at 12:21 AM, tapir <nginx-forum@nginx.us> wrote:
> can I then use other scripts from /path/to/otherscript
>
> my document root looks like this:
>
> phpbb/
> wordpress/
> phpmyadmin/
> piwik/
>
> but I only want wordpress to be accessible from the mydomain.com. Others
> should be accessible from mydomain.com/phpbb and so on...
>
> maybe I should have asked this from the start :) how can I achieve this?
>

location /phpbb {
root /some/where; #actual phpbb installation in /some/where/phpbb
location ~ \.php$ {
fastcgi_pass ...;
...
}
}
location /wordpress {
root /some/where_else; #actual wordpress installation in
/some/where_else/wordpress
location ~ \.php$ {
...
}
}
....
location / {
root /some/where_else/wordpress;
location ~ \.php$ {
...
}
}

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

_______________________________________________
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: 266
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