zoukankan      html  css  js  c++  java
  • tengine upstream


    user  root;
    worker_processes  1;


    events {
        worker_connections  1024;
    }


    http {
        include       mime.types;
        default_type  application/octet-stream;


        sendfile        on;
        #tcp_nopush     on;

        #keepalive_timeout  0;
        keepalive_timeout  65;

        #gzip  on;
        # 不能有下划线
        upstream backend {
            ip_hash;
            server 49.4.71.119:5002;
            #server 192.168.1.220:5002;
        
            check interval=3000 rise=2 fall=5 timeout=1000 type=http;
            check_keepalive_requests 100;
            check_http_send "GET / HTTP/1.0 ";
            check_http_expect_alive http_2xx http_3xx;
        }
       
        server {
            listen       80;
            server_name  localhost;
            
            location / {
                root    /opt/app02/sys-webclient;
                index   index.html index.htm;
            }

                    
            location ~*/(microarch|resource)/ {
                 proxy_pass  http://backend;
            }

            location = /nginx_status {
                stub_status on;
            
                #allow 10.10.22.96;
                #deny all;
            }

            location /status {
                check_status;
                access_log   off;

                #allow 10.10.22.96;
                #deny all;
            }

            #error_page  404              /404.html;
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   html;
            }
        }
    }

  • 相关阅读:
    [CF 803G]- Periodic RMQ Problem 动态开点线段树 或 离线
    [2018CCPC吉林赛区(重现赛)- 感谢北华大学] 补题记录 躁起来
    【EDU68 E】 Count The Rectangles 数据结构算几何
    【HDU5409】CRB and Graph 边双联通 子树最值
    【CF1137C】 Museums Tour 拆点+缩点
    【HDU6035】 Colorful Tree
    【Edu 67】 补题记录
    五月月赛 寻宝 exkmp + 主席树
    ZOJ
    CF 551 D.Serval and Rooted Tree 树形DP
  • 原文地址:https://www.cnblogs.com/rigid/p/10680391.html
Copyright © 2011-2022 走看看