宝塔面板无法从面板正常启动Nginx记录

做种服务器用来反代WebUI的Nginx莫名其妙挂掉了,在面板怎么启动都启动不了。

尝试在SSH手动启动,结果如下

[[email protected] ~]# 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

[[email protected] ~]# service nginx start
Starting nginx...  done

总结:Nginx反代URL不能带路径,鬼知道我之前怎么保存成功的。

© 版权声明
THE END
喜欢就支持以下吧
点赞0赞赏
分享
评论 抢沙发