nginx配置mac-403

在 MAC 上用BREW 安装好NGINX 后,修改网站文件路径后出错。

默认 root html; 的真实路径为

/usr/local/Cellar/nginx/1.2.3/html  
指向到:
/usr/local/var/www

文件夹所有权是 root wheel
修改 nginx.conf 的 user root wheel;
修改自定义网站代码所在目录的所有权为 chown -R root:wheel www;

然后就搞定了。 转自:http://www.cnblogs.com/edwardsong/p/3623717.html

猜你喜欢

转载自wyzws.iteye.com/blog/2194138