VPS侦探论坛

 找回密码
 注册
查看: 5025|回复: 1

关闭空主机头时出错,如何解决?

[复制链接]
发表于 2012-5-9 22:46:23 | 显示全部楼层 |阅读模式

关闭空主机头时,改了文件,输入/usr/local/ nginx/sbin/ nginx -s reload后显示nginx: [emerg] "location" directive is not allowed here in /usr/local/ nginx/conf/ nginx.conf:63,用IP依然可以访问,是什么问题如何解决?
改成了这样对不对?
  1. server
  2.         {
  3.           listen 80 default;
  4. return 500;}

  5.                 location /status {
  6.                         stub_status on;
  7.                         access_log   off;
  8.                 }
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-5-9 23:04:27 | 显示全部楼层


解决了,是我自己太笨了没弄明白该替换什么。抱歉!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 23:22 , Processed in 0.025103 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表