zoukankan      html  css  js  c++  java
  • tengine-sticky

    #添加sticky模块
    ./configure --prefix=/data/tengine --with-http_stub_status_module --with-http_ssl_module --add-module=modules/ngx_http_upstream_session_sticky_module
    
    #官方链接
    http://tengine.taobao.org/
    http://tengine.taobao.org/document_cn/http_upstream_session_sticky_cn.html
    
    #upstream设置
    upstream app {
            session_sticky;
            server 11.83.2.16:80;
            server 11.83.2.17:80;
    }
    
    server {
            listen       443;
            server_name  x.x;
    
            location / {
                proxy_pass http://app;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header Host $host:1443;
            }
            location /status {
    	    stub_status on;
    	    access_log off;
                allow 127.0.0.1;
                deny all;
    	}
    } 
    
    
  • 相关阅读:
    spring
    23种设计模式
    get getline
    ping
    Android四大组件
    C++数据结构
    玩转windows便签
    [JavaScript]再谈 this
    [JavaScript]面向对象编程浅析之XJB讲
    [JavaScript]MVC浅析
  • 原文地址:https://www.cnblogs.com/kylingx/p/13405939.html
Copyright © 2011-2022 走看看