multiple roots for multiple sites

John Magolske listmail at
Sat May 15 03:01:26 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.

I just now tried the above directive in my nginx.conf, but end up
getting '404 Not Found' on all my sites.


John Magolske

More information about the nginx mailing list