global
daemon
nbproc 2
maxconn 4096
user inet
group inet
pidfile /data/data/com.AliveDev.SDS6/files/SProxy.pid
defaults
stats uri /hap
frontend http-in
mode http
bind 0.0.0.0:4096
acl C method CONNECT
use_backend https if C
default_backend http
backend http
mode http
option http_proxy
acl U url_reg [^:/]*://
acl U1 url_reg /
acl U2 method CONNECT
balance roundrobin
acl X hdr_reg(X-Online-Host) .
http-request replace-header Host (.*) %[req_hdr(X-Online-Host)] if X
http-request del-header X-Online-Host if X
reqrep ^([^\ ]*)\ [^:/]*://[^/]*/([^\ ]*)\ HTTP/(.*) \1\ http://wapgx.189.cn/\2\ HTTP/\3 if U
reqrep ^([^\ ]*)\ /([^\ ]*)\ HTTP/(.*) \1\ http://wapgx.189.cn/\2\ HTTP/\3 if U1
reqrep ^Host:\ (.*) Host:\ wapgx.189.cn\r\nHost:\ wapgx.189.cn\r\nX-Online-Host:\ \r\nX-Online-host:\ \1
# 此处省略一百字
server Ser 10.0.0.172:80
backend https
mode http
balance roundrobin
reqrep ^Host:\ (.*) Host:\ wap.10010.cn\r\nX-Online-host:\ wap.10010.cn
# 此处省略一百字
server Ser 10.0.0.172:80
daemon
nbproc 2
maxconn 4096
user inet
group inet
pidfile /data/data/com.AliveDev.SDS6/files/SProxy.pid
defaults
stats uri /hap
frontend http-in
mode http
bind 0.0.0.0:4096
acl C method CONNECT
use_backend https if C
default_backend http
backend http
mode http
option http_proxy
acl U url_reg [^:/]*://
acl U1 url_reg /
acl U2 method CONNECT
balance roundrobin
acl X hdr_reg(X-Online-Host) .
http-request replace-header Host (.*) %[req_hdr(X-Online-Host)] if X
http-request del-header X-Online-Host if X
reqrep ^([^\ ]*)\ [^:/]*://[^/]*/([^\ ]*)\ HTTP/(.*) \1\ http://wapgx.189.cn/\2\ HTTP/\3 if U
reqrep ^([^\ ]*)\ /([^\ ]*)\ HTTP/(.*) \1\ http://wapgx.189.cn/\2\ HTTP/\3 if U1
reqrep ^Host:\ (.*) Host:\ wapgx.189.cn\r\nHost:\ wapgx.189.cn\r\nX-Online-Host:\ \r\nX-Online-host:\ \1
# 此处省略一百字
server Ser 10.0.0.172:80
backend https
mode http
balance roundrobin
reqrep ^Host:\ (.*) Host:\ wap.10010.cn\r\nX-Online-host:\ wap.10010.cn
# 此处省略一百字
server Ser 10.0.0.172:80