MAC nginx 403 Forbidden problem can be solved here

Open the iTerm input/usr/local/etc/nginx/nginx. Conf

user root owner; Location / {autoindex on; // It is important to add this line of code root HTML; // Your path index index.html index.htm; }Copy the code