i am using HaProxy as proxy for an apache2 webserver setup.
Apache2 is listening on port 8080 and HaProxy is listening on port 80 and 443. I am also using SSL.
If i browse phab.example.com:8080 (domain changed here) everything is working fine, vHosts works and so on.
But if i browse phab.example.com (which requests to HaProxy), i always get the content of /var/www/html and i dont know why.
My HaProxy configuration /etc/haproxy/haproxy.cfg:
I have fixed the problem now!
Apache2 vHosts only listen on public server ip, not on internal 127.0.0.1 ip.
So i have to change backend line server phab1 127.0.0.1:8080 check to server phab1 193.30.xxx.xxx:8080 check.