Welcome! Log In Create A New Profile

Advanced

Re: change the root directory in nginx

Francis Daly
August 01, 2012 02:34PM
On Wed, Aug 01, 2012 at 07:02:44AM -0400, sayres wrote:

Hi there,

Every location{} can have a "root" directive.

If a location has a "root" directive, then that is the root for requests
handled in that location.

If a location does not have a "root" directive, then the "root" directive
from the server{} level applies.

If the server{} does not have a "root" directive, then the "root"
directive from the http{} level applies.

If http{} does not have a "root" directive, then the compile-time
default applies.

> Which part I must add /home/user/web??

I suggest that you remove all of the current "root" directives, and add
your one into the server{} block.

f
--
Francis Daly francis@daoine.org

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

change the root directory in nginx

sayres July 31, 2012 05:08AM

Re: change the root directory in nginx

Francis Daly July 31, 2012 01:38PM

Re: change the root directory in nginx

sayres August 01, 2012 07:02AM

Re: change the root directory in nginx

sayres August 01, 2012 05:09PM

Re: change the root directory in nginx

sayres August 01, 2012 05:09PM

Re: change the root directory in nginx

Francis Daly August 01, 2012 02:34PM

Re: change the root directory in nginx

Francis Daly August 02, 2012 02:04PM

Re: change the root directory in nginx

sayres August 03, 2012 07:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 122
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready