making the world a stranger place

Site menu:

Archives

Links:

Github

Amazon Ad

Tags

Meta

Archive for September, 2008

Apache Virtual Hosts & HAProxy

When checking pages with option httpchk against an apache server with virtual hosts setup, you have to remember to put the full domain to what you want to check. This is because if you don’t have the domain, Apache won’t know which virtual host to sent the request to, and you could get pages that are UP showing DOWN, or worse, pages that are DOWN showing UP.

Another thing to remember is using option forwardfor, which passes the domain along with the request, so it will go to the right virtual host.
Read more »