zoukankan      html  css  js  c++  java
  • 解决 Nginx 代理Apex慢的问题

    前不久用 Nginx 代理 Oracle 的 Apex 速度非常慢,我之前Nginx 配置如下:

    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/;
    
            }
    }
    

     在漫长的查找中找到最靠谱的方法,就是把localhost 改成IP地址 127.0.0.1

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

    #完整代码
    server{
            listen 80;
            server_name localhost;
            client_max_body_size 100M;
            location / {
                    root html;
                    index index.html;
            }
            #代理Apex
            location /apex/ {
                    proxy_pass http://127.0.0.1:8080/apex/;
    
            }
    }
    

      

  • 相关阅读:
    HDU 5444 Elven Postman 二叉排序树
    HDU 5438 Ponds dfs模拟
    Gym
    markdown test
    Gym
    集训回顾
    UVALive
    UVALive
    UVALive
    codeforcres 589 J
  • 原文地址:https://www.cnblogs.com/ser0632/p/10979400.html
Copyright © 2011-2022 走看看