Re: Users - running virtual hosts via apache

Posted by Andrew Sykes on
URL: http://ofbiz.116.s1.nabble.com/Users-running-virtual-hosts-via-apache-tp136762p136763.html

Hans,

We do something similar to this, but we use mod_rewrite too. No need to
specify virtual hosts in Tomcat, just create different local mount-
points, so your apache config would change to something like...

<VirtualHost *>
    ServerAlias papo.nl
    ServerAlias www.papo.nl
    RewriteEngine on
    RewriteRule   ^/papo(.*)$  http://localhost:8080/papo$1  [P,L]
    RewriteRule   ^/(.*)$  http://localhost:8080/papo/$1  [P,L]
    ProxyPassReverse / http://localhost:8080/papo/
</VirtualHost>

Kind Regards
--
Andrew Sykes <[hidden email]>
Sykes Development Ltd

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