Welcome! Log In Create A New Profile

Advanced

Re: multiple roots for multiple sites

Fernando Perez
May 14, 2010 06:36PM
Your config should look like that:

location / {
root /usr/local/nginx/html/$host;
index index.html index.htm;
}

So that you want ever have to touch the configuration file even if new
sites get created. It's the easiest but there are drawbacks, if you can
spot them.
--
Posted via http://www.ruby-forum.com/.

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

multiple roots for multiple sites

John Magolske May 14, 2010 06:36PM

Re: multiple roots for multiple sites

Fernando Perez May 14, 2010 06:36PM

Re: multiple roots for multiple sites

John Magolske May 14, 2010 07:04PM

Re: multiple roots for multiple sites

Fernando Perez May 15, 2010 06:18AM

Re: multiple roots for multiple sites

Maxim Dounin May 14, 2010 07:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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