关闭空主机头时出错,如何解决?
关闭空主机头时,改了文件,输入/usr/local/ nginx/sbin/ nginx -s reload后显示nginx: "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;
} 解决了,是我自己太笨了没弄明白该替换什么。抱歉!
页:
[1]