Re: Users - running virtual hosts via apache

Posted by David E. Jones on
URL: http://ofbiz.116.s1.nabble.com/Users-running-virtual-hosts-via-apache-tp136762p136790.html


I'm not sure what might be going wrong from this description, but  
generally if you are using Apache for virtual hosts you don't need to  
also specify virtual hosts in for the embedded app server in the  
ofbiz-component.xml file. You may also have more luck using mod_jk  
and the AJP13 stuff when doing virtual hosts, I'm not sure about  
issues with proxies and virtual hosts...

Of course, there are others on the list that have a lot more  
experience with this than I do...

-David


On Dec 20, 2005, at 7:47 PM, Hans Bakker wrote:

> 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

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

smime.p7s (3K) Download Attachment