V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
esolve
V2EX  ›  问与答

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

  •  
  •   esolve · Mar 27, 2018 · 4696 views
    This topic created in 2962 days ago, the information mentioned may be changed or developed.

    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;
        }
        。。。
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 20:08 · PVG 04:08 · LAX 13:08 · JFK 16:08
    ♥ Do have faith in what you're doing.