[1.4.1] Finding docroot directory?
    Francis Daly 
    francis at daoine.org
       
    Mon May 13 11:24:45 UTC 2013
    
    
  
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        francis at daoine.org
    
    
More information about the nginx
mailing list