modify http response (not header) in haproxy -
i want make 1 website(lets blocked.com) not accessible country accessible clients throue custom url notblocked.com using haproxy.
i have haproxy box configured on vps outside of country. main problem is,that website sending url redirection on response body using javascript function , clients getting redirected original web address.
how can intersept response body , change domain name in java scrip domain (notblocked.com) . haproxy configuration
global log 127.0.0.1 local0 maxconn 4000 maxsslconn 256 tune.ssl.default-dh-param 2048 daemon uid 99 gid 99 defaults log global mode http option httplog option dontlognull timeout server 5s timeout connect 5s timeout client 5s stats enable stats refresh 10s stats uri /stats frontend https_frontend bind *:443 ssl crt /etc/ssl/certs/kstore.pem no option http-server-close mode http default_backend web_server http-request set-header host blocked.com backend web_server mode http balance roundrobin server srv01 1.2.3.4:443 weight 1 maxconn 100 check ssl verify none thanks
Comments
Post a Comment