On Mon, May 13, 2013 at 07:02:14AM -0400, Shohreh wrote:

Hi there,

> I'm confused about the multiple configuration files used by Nginx:
> 
> /etc/nginx.conf
> /etc/conf.d/
> /etc/sites-available/
> /etc/sites-enabled/
> 
> Why are there more than one?

nginx uses exactly one -- the one named in the "-c" argument when run,
or else the compiled-in value.

That one file may use the "include" directive to read in other files,
if the administrator thinks that this is more useful to them.

And if you're not running the equivalent of "/usr/local/nginx/sbin/nginx",
then whatever startup sequence you are running might introduce its own
"-c" argument. That's up to the administrator, and not nginx.

        f
-- 
Francis Daly        fran...@daoine.org

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

Reply via email to