V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
esolve
V2EX  ›  问与答

nginx 配置后, http 访问 pending 怎么回事?

  •  
  •   esolve · 2018-03-27 23:26:42 +08:00 · 4238 次点击
    这是一个创建于 2213 天前的主题,其中的信息可能已经有所发展或是发生改变。

    conf 配置如下

    security_ui 下是静态页面,访问没问题

    http://safeguard 对应的是后台程序

    譬如访问 http://localhost:8090/api/index?msisdn=bc65670205bff064f878d61afa2e98b5&channel=null

    访问的时候时不时 pending,有时很快,有时很久才得到响应

    怎么回事?

    ps:不用 8090 端口进行 nginx 路由,直接用 8080 就没问题

    upstream safeguard{
       server localhost:8080;
       #server 192.168.194.72:8013;
       #ip_hash;
    }
    
    server {
        listen       8090;
        server_name  localhost;
    
        #charset koi8-r;
    
        #access_log  logs/host.access.log  main;
    
        location / {
            root   html;
            proxy_pass http://safeguard;
            index  index.html index.htm;
        }
    
    
        location /security_ui {
            root   D:\svn\safeGuard;
            index  index.html index.htm;
        }
        。。。
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4373 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 05:32 · PVG 13:32 · LAX 22:32 · JFK 01:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.