`

Ubuntu nginx 403错误

阅读更多

1、安装

sudo apt-get install nginx

安装完后直接访问会提示403,这时修改 /etc/nginx/sites-enabled/default,将

location / {

root /var/www;

index index.html index.htm;

}

改为

 

location / {

root /var/www/nginx-default;

index index.html index.htm;

}

 

即可。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics