Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Problem when using subfolder

$
0
0
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

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>