Welcome! Log In Create A New Profile

Advanced

Problem when using subfolder

December 25, 2012 11:04AM
Hi There,

need to solve the following Problem:

location / should point to /var/www/myfirstside
and location /subside should point to /var/www/mysecondside

I have no idea how to solve this.

I tried:

location / {
root /var/www/myfirstside
}

location /subside {
root /var/www/mysecondside
}

but this doesn't work because nginx send all requests for /subside to /var/www/mysecondside/subside ...

Could anybody help me?

THX allot
Pascal
SubjectAuthorPosted

Problem when using subfolder

PascalTurboDecember 25, 2012 11:04AM

Re: Problem when using subfolder

Maxim DouninDecember 25, 2012 11:08AM

Re: Problem when using subfolder

Bill CulpDecember 25, 2012 11:54AM

Re: Problem when using subfolder

Maxim DouninDecember 25, 2012 01:06PM

Re: Problem when using subfolder

Bill CulpDecember 25, 2012 11:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready