zoukankan      html  css  js  c++  java
  • nginx 多级代理

    nginx

    upstream backend {
            server  ip1:80;
            server  ip2:80;
    }

    server {
        resolver 10.10.235.22;
        resolver_timeout 5s;

        listen 0.0.0.0:80;

        #access_log  /home/reistlin/logs/proxy.access.log;
        #error_log   /home/reistlin/logs/proxy.error.log;

        location / {
            #proxy_pass $scheme://$host$request_uri;
            proxy_pass http://backend;
            proxy_set_header Host $http_host;

            proxy_buffers 256 4k;
            proxy_max_temp_file_size 0;

            proxy_connect_timeout 30;

            proxy_cache_valid 200 302 10m;
            proxy_cache_valid 301 1h;
            proxy_cache_valid any 1m;
        }
    }

  • 相关阅读:
    9.对话框
    8.布局管理器
    7.对象模型
    6.添加动作
    5.Qt模块简介
    4.自定义信号槽
    3.信号槽
    2.Helloworld
    1.Qt简介
    Problem E: 成绩排序
  • 原文地址:https://www.cnblogs.com/lexus/p/2528882.html
Copyright © 2011-2022 走看看