Demo entry 6630699

ss

   

Submitted by anonymous on Jul 10, 2017 at 13:10
Language: JSON. Code size: 436 Bytes.

location ~ ^/walletapp\b {
    if ($scheme = "http") {
        rewrite ^(.*)$ https://$host$1 redirect;
    }
    proxy_set_header Host coreapi.wallet.baidu.com;  
    include proxy.conf;  #默认AB实验 
    proxy_pass http://orp_inner_access_pool;
}

upstream orp_inner_access_pool {
    server bfb-web-http.PAY.jx.serv:9080; # idc:jx
    server bfb-web-http.PAY.tc.serv:9080 backup; # idc:tc
    server 127.0.0.1:9080 backup;
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).