Problem when using subfolder

PascalTurbo nginx-forum at nginx.us
Tue Dec 25 16:04:03 UTC 2012


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

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



More information about the nginx mailing list