Posted by
Firas A.-2 on
URL: http://ofbiz.116.s1.nabble.com/Users-running-virtual-hosts-via-apache-tp136762p136788.html
Hi,
I agree with Brett; mod_jk2 is probably a better choice. I'm using similar
configuration myself: Tomcat (embedded in OFBiz) behind Apache.
At times, such a configuration can get very tricky, but I found these two
resources to be very helpful:
* Multiple Instances
http://ofbizwiki1.go-integral.com/Wiki.jsp?page=SSSMultiInstances
* Getting started with mod_jk2
http://www.gknw.com/development/apache/docs/win32/mod_jk2/mod_jk2-getting_started.html
Good luck!
</Firas>
_________________________________________________ Original Message
From:
[hidden email] [mailto:
[hidden email]]
On Behalf Of Hans Bakker
Sent: den 21 december 2005 03:47
To:
[hidden email]
Subject: [OFBiz] Users - running virtual hosts via apache
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=SSSMultiStores3I 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