本地web访问linux虚拟机服务器报403错误

打开文件nginx

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

修改第一行内容为:ide

user  root root;

退出保存
重启nginx;rest

/etc/init.d/nginx restart