Solve the problem of slow Nginx proxy

Not long ago, with Nginx proxy Oracle Apex is very slow, as I Nginx configuration is as follows:

 

server{
        listen 80;
        server_name localhost;
        client_max_body_size 100M;
        location / {
                root html;
                index index.html;
        }
        #代理Apex
        location /apex/ {

                proxy_pass http://localhost:8080/apex/;

        }
}

 The most reliable way to find a long look in, is to change the IP address of 127.0.0.1 localhost

proxy_pass http://localhost:8080/apex/;改成 proxy_pass http://127.0.0.1:8080:/apex/;  

# Complete code 
Server { 
        the listen 80; 
        server_name localhost; 
        client_max_body_size 100M; 
        LOCATION / { 
                the root HTML; 
                index index.html; 
        } 
        # Agent Apex 
        LOCATION / Apex / { 
                proxy_pass http://127.0.0.1:8080/apex/; 

        } 
}

  

Guess you like

Origin www.cnblogs.com/ser0632/p/10979400.html