天天看點

mac nginx 403 Forbidden 問題解決

試了其他的部落格操作都不管用,mac nginx 403 Forbidden 問題在這裡或許能解決

打開iTerm 輸入

/usr/local/etc/nginx/nginx.conf

user root owner; //打開的檔案最上面配置這個

location / {
    autoindex on; // 重要的是加上這句代碼
    root   html; // 你的路徑
    index  index.html index.htm;
}
           

繼續閱讀