How to configure http server for 2 sites - "http/1.1 Service Unavailable"

Hi,

We have 2 sites in XP and have 2 separate domain names.

xp.site1.com
xp.site2.com

To reach xp.site1.com is not a problem but when I try xp.site1.com I get error “http/1.1 Service Unavailable”

This is the config I have tried out.
httpd-vhosts.conf:
<VirtualHost *:80>
ServerAdmin webmaster@xp.site1.com
DocumentRoot “d:/http/Apache24/htdocs/testxp/site1”
ServerName xp.site1.com
ErrorLog “logs/site1-error.log”
CustomLog “logs/site1-access.log” common

ProxyRequests Off
ProxyPreserveHost On

ProxyPass /admin/event ws://localhost:8080/admin/event
ProxyPassReverse /admin/event ws://localhost:8080/admin/event

ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

<VirtualHost *:80>
ServerAdmin webmaster@xp.site2.com
DocumentRoot “d:/http/Apache24/htdocs/testxp/site2”
ServerName xp.site2.com
ErrorLog “logs/site2-error.log”
CustomLog “logs/site2-access.log” common

ProxyRequests Off
ProxyPreserveHost On

ProxyPass /admin/event ws://localhost:8080/admin/event
ProxyPassReverse /admin/event ws://localhost:8080/admin/event

ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

And the config for
com.enonic.xp.web.vhost.cfg

enabled =true

mapping.a.host = localhost
mapping.a.source = /
mapping.a.target = /
mapping.a.userStore = system

mapping.b.host = xp.site1.com
mapping.b.source = /
mapping.b.target = /portal/master/site1
mapping.b.userStore = system

mapping.c.host = xp.site2.com
mapping.c.source = /
mapping.c.target = /portal/master/site2
mapping.c.userStore = system

mapping.admin.host = xp.site1.com
mapping.admin.source = /admin
mapping.admin.target = /admin
mapping.admin.userStore = system

Is this the correct way of setting things up? Or am I missing something out?

Thanks in advance

Is it site2 that is failing? It is not clear from your intro.

You have the admin websocket mapping in both site1 and site2, remove it from site2, not sure if this solves your issue. Also check out the apache error log to see if you find anything there.

Yes, it is site2 that is failing.
I removed the admin websocket mapping but it still not work. No info about in the apache log files either.

The setup was correct. It was however required to do some more changes on the customers network with the netscaler proxy and firewall.