nginx的解答,求一求啦

img


求这道nginx的解答
还有为什么报错
已经关闭了Apache还是出现这种现象
systemctl stop httpd
不是很理解

img

img

貌似是 root 指令的问题,访问的路径是啥啊,用浏览器打开不更直观吗

1、配置nginx.conf(配置没被包含到配置文件)
如果你的nginx配置文件是在/etc/nginx/conf.d/,编辑nginx.conf:

在http层括号内追加:

http {
include /etc/nginx/conf.d/*.conf;
}
重启生效

2、或把proxy_pass 后的地址改为http,重启nginx再试

img