hp5212000 2015-09-11 06:35 采纳率: 0%
浏览 3666

在虚拟机上安装nginx,无法通过http访问nginx的状态

第一次使用Azure,
1. 创建了一个虚拟机然后在上面安装了nginx
2. 配置nginx状态检查
server {
listen 80;
charset utf-8;

    access_log  /var/log/nginx/gxx.log;


    location /nginx-status {
        stub_status on;
        access_log  off;
        error_log off;
        allow all;
    }

}
  1. 在Azure虚拟机Endpoints里打开80端口
  2. 保存重启后通过Azure给的DNS访问,结果老是超时

有遇到这个问题的同学给指个道,不胜感激。

  • 写回答

2条回答 默认 最新

  • student-ai 2015-09-11 06:46
    关注

    没用过,ping一下你的ip试试,看看延迟高不高

    评论

报告相同问题?