multiple roots for multiple sites

Fernando Perez lists at
Sat May 15 02:33:52 MSD 2010

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

More information about the nginx mailing list