VPS侦探论坛
标题:
关闭空主机头时出错,如何解决?
[打印本页]
作者:
wybie
时间:
2012-5-9 22:46
标题:
关闭空主机头时出错,如何解决?
关闭空主机头时,改了文件,输入/usr/local/ nginx/sbin/ nginx -s reload后显示nginx: [emerg] "location" directive is not allowed here in /usr/local/ nginx/conf/ nginx.conf:63,用IP依然可以访问,是什么问题如何解决?
改成了这样对不对?
server
{
listen 80 default;
return 500;}
location /status {
stub_status on;
access_log off;
}
复制代码
作者:
wybie
时间:
2012-5-9 23:04
解决了,是我自己太笨了没弄明白该替换什么。抱歉!
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4