Welcome! Log In Create A New Profile

Advanced

Re: change the root directory in nginx

Francis Daly
August 02, 2012 02:04PM
On Wed, Aug 01, 2012 at 05:09:39PM -0400, sayres wrote:

> Can you explain by example???

In your current config file, add

root /usr/share/nginx/html;

immediately after

server {

and delete the other four mentions of

root /usr/share/nginx/html;

that are inside different location{} blocks.

Your server should be effectively the same as it was

To change to a new root directory, change the one line that you added.

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: 70
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