做种服务器用来反代WebUI的Nginx莫名其妙挂掉了,在面板怎么启动都启动不了。
尝试在SSH手动启动,结果如下
[root@localhost ~]# service nginx start
Starting nginx... nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /www/server/panel/vhost/nginx/proxy/flexget.im.ci/f849c09dacd2f2f8c2f18eb5ff082308_flexget.im.ci.conf:5
failed
看报错的意思是”flexget.im.ci”的反代参数有误,导致Nginx无法启动。
返回面板,直接删除反代配置,再次启动Nginx
[root@localhost ~]# service nginx start
Starting nginx... done
总结:Nginx反代URL不能带路径,鬼知道我之前怎么保存成功的。
© 版权声明
文章版权由CC-BY-NC-SA 4.0协议分发共享
THE END
暂无评论内容