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

      

  • 相关阅读:
    progresql
    postgresql
    postgresql
    postgresql 索引
    postgresql 视图
    postgresql 触发器
    postgresql异常快速定位
    postgresql数据库备份和恢复
    amgular $q用法
    安装fcitx
  • 原文地址:https://www.cnblogs.com/ser0632/p/10979400.html
Copyright © 2011-2022 走看看