Welcome! Log In Create A New Profile

Advanced

Re: multiple roots for multiple sites

John Magolske
May 14, 2010 07:04PM
> 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

--
John Magolske
http://B79.net/contact

_______________________________________________
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: 243
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