Users - running virtual hosts via apache

Posted by Hans Bakker on
URL: http://ofbiz.116.s1.nabble.com/Users-running-virtual-hosts-via-apache-tp136762.html

Good morning,
I am trying to run different domainnames on the same ofbiz instance via apache
remapping port 80->8081 and 443->8444 but have problems getting this working.
(default ofbiz ports changed)
There is no error in the log file but the application is not started...
Mapping one domeinname to the root and not using the virtual host parameter
on the ofbiz ocmponent file works ok.

Any way what is the preferred method? I searched through the wiki and
mailinglist and did what is mentioned on the wikipage:
http://ofbizwiki1.go-integral.com/Wiki.jsp?page=SSSMultiStores3

I tried with the following ofbiz-component.xml config:

 <webapp name="OpenWinkel" title="Open Winkel.nl" server="default-server"
              location="openwinke"  mount-point="/" app-bar-display="false">
    <virtual-host host-name="www.openwinkel.nl"/>
 </webapp>

 <webapp name="Vuurwerk" title="Vuurwerk shop"  server="default-server"
          location="vuurwerk"  mount-point="/"  app-bar-display="false">
    <virtual-host host-name="www.papo.nl"/>
 </webapp>

In apache V1.3 I am using the mod_proxy module and the following virtual
hosting config files:
<VirtualHost *:80>
ServerName openwinkel.nl
ServerAlias www.openwinkel.nl
ServerAdmin [hidden email]
ProxyVia On
ProxyPass / http://localhost:8081/
ProxyPassReverse / http://localhost:8081/
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
CustomLog /var/log/apache/openwinkel.nl-access.log combined
ErrorLog /var/log/apache/openwinkel.com-error.log
</VirtualHost>

<VirtualHost *:80>
ServerName papo.nl
ServerAlias www.papo.nl
ServerAdmin [hidden email]
ProxyVia On
ProxyPass / http://localhost:8081/
ProxyPassReverse / http://localhost:8081/
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
CustomLog /var/log/apache/papo.nl-access.log combined
ErrorLog /var/log/apache/papo.nl-error.log
</VirtualHost>


anybody has any ideas what I am missing here?

--
Regards,
Hans Bakker
ANT Websystems Co.,Ltd (http://www.antwebsystems.com)

If you want to verify that this message really originates from
from the above person, download the public key from:
http://www.antwebsystems.com/hbakkerAntwebsystems.asc

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

attachment0 (196 bytes) Download Attachment