Hi,
We have 2 sites in XP and have 2 separate domain names.
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