Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4761

Disguise Backend DNS

$
0
0

Hi,
I am trying to disguise the DNS of the backend’s webserver.
If the config would be simple as:

frontend https-frontend

    bind xxx.xxx.xxx.xxx:443 ssl certificate.pem

    # General Rules
    acl path_is_root path -i /

    # Rules 
    acl host_oldserver hdr(host) -i oldserver.domain.com

    use_backend newserver-backend if host_oldserver

backend newserver-backend
server newserver newserver.domain.com:443 check ssl verify none

The goal is that if you enter “https://oldserver.domain.com” it doesn’t show “https://newserver.domain.com” in the browsers address bar - it should always show “https://oldserver.domain.com/.*”.
I already messed around with “http-response set-header …” in the backend, but I seem to miss something?

Cheers

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4761

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>