Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I own a VPS running several websites. One of my websites needs to use Mavin for CometD, but I still have to leave Apache running for the other sites. To do this I'm using HAProxy.

I moved Apache and all it's sites off of port 80 and configured HAProxy to run on there. HAProxy does a fine job of routing the proper stuff to Apache, but Apache gives me "Default web site page" instead of the proper VirtualHost. How can I fix this?

A little bit from my Apache config:

DocumentRoot /homeexample/public_html/hg
<IfModule mod_userdir.c>
    Userdir disabled
    Userdir enabled isbwmp
<IfModule mod_suphp.c>
    suPHP_UserGroup isbwmp isbwmp
<IfModule !mod_disable_suexec.c>
    SuexecUserGroup isbwmp isbwmp
CustomLog /usr/local/apache/domlogs/ "%{%s}t %I .\n%{%s}t %O ."
CustomLog /usr/local/apache/domlogs/ combined
ScriptAlias /cgi-bin/ /home/isbwmp/public_html/cgi-bin/

And a bit from my HAProxy config: (Copied, I don't understand it, really)

frontend http_proxy #arbitrary name for the frontend
    bind *:80 #all interfaces at port 80
    mode http
    option forwardfor
    option http-server-close
    option http-pretend-keepalive
    default_backend twisted #by default forward the requests to apache

    acl req_cometd_path path_beg /comet/
    use_backend cometd if req_cometd_path

    acl req_cometd_host hdr_dom(host) -i
    use_backend cometd if req_cometd_host
share|improve this question

Fixed it: I just needed to change the vhosts from my IP to

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.