Problem

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

Solution

Added this line

nginx.conf
 
 
 
 
 
Default
 
2
;

 

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.

/usr/local/var/log/nginx/error.log
 
 
 
 
 
Default
 
1
2
3
 
 

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

New nginx.conf
 
 
 
 
 
INI
 
2
;

It was that simple!

相关文章:

  • 2021-11-26
  • 2021-09-22
  • 2021-11-21
  • 2021-12-23
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-06-24
猜你喜欢
  • 2021-08-10
  • 2021-08-24
  • 2021-06-23
  • 2021-03-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案