change the root directory in nginx

Francis Daly francis at daoine.org
Tue Jul 31 17:35:57 UTC 2012


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 at daoine.org



More information about the nginx mailing list