Welcome! Log In Create A New Profile

Advanced

Re: [1.4.1] Finding docroot directory?

Francis Daly
May 13, 2013 07:26AM
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@daoine.org

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

[1.4.1] Finding docroot directory?

Shohreh May 13, 2013 06:56AM

Re: [1.4.1] Finding docroot directory?

Shohreh May 13, 2013 07:02AM

Re: [1.4.1] Finding docroot directory?

openletter May 13, 2013 07:08AM

Re: [1.4.1] Finding docroot directory?

Francis Daly May 13, 2013 07:20AM

Re: [1.4.1] Finding docroot directory?

Francis Daly May 13, 2013 07:26AM

Re: [1.4.1] Finding docroot directory?

Shohreh May 13, 2013 07:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 273
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