Problem

Despite checking permissions, nginx will return nothing but a 403 error page.

Solution

Added this line

 

Background

I installed nginx on my mac like everyone else using this guide, and it worked for my site until I changed the configuration to a different directory a second time. Something was different.

I started to get 403 errors, so I checked the logs and didn’t find anything more helpful than this.

After about 2 hours burned changing permissions on everything imaginable I found this guy, who figured out /usr/local/etc/nginx/nginx.conf, needs the user line to read

It was that simple!

posted on 2014-09-09 13:12  裴银祥的博客园  阅读(201)  评论(0编辑  收藏  举报