Welcome! Log In Create A New Profile

Advanced

Re: change the root directory in nginx

Francis Daly
July 31, 2012 01:38PM
On Tue, Jul 31, 2012 at 05:08:29AM -0400, sayres wrote:

Hi there,

> How can I change the root directory in nginx??
> Now my root directory is /usr/share/nginx/html.
> I want change it, like ~/web

http://nginx.org/r/root

Probably: put "root /home/user/web;" in the server{} block that you
care about.

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