Paul thank you so much for this input! Just a small question the tomcat/magnolia package won't work with this solution so I guess you first install the standard apache/tomcat package in deploy magnolia war files inside your apache/tomcat standard install.
If you could confirm that I would start implementing it right away! -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 26, 2007 3:34 PM To: [email protected] Subject: Re: [magnolia-user] Multiple websites in one instance --On 16 July 2007 16:54 +0200 Frank Deecke <[email protected]> wrote: > How can one get rid of the first node in the URL. As far as I know, you can't in Tomcat and Magnolia alone. Up to now I have tolerated it by putting a rather inconspicuous name there; but now I have the solution (backward compatible, too). I already run a reverse proxy in front of Tomcat, as I have other sites which Tomcat is no part of. I have just today replaced my old reverse proxy (at32 Reverse Proxy) with Apache, and managed to set up what you (and I) want. The relevant lines of my Apache config look like: <VirtualHost 82.70.166.73> ServerName ambisonic.info ServerAlias www.ambisonic.info ProxyPass /docroot/ http://ambisonic.info:8081/docroot/ ProxyPass /ai/ http://ambisonic.info:8081/ai/ ProxyPass / http://ambisonic.info:8081/ai/ <Location /docroot/> ProxyPassReverse /docroot/ </Location> <Location /> ProxyPassReverse / SetOutputFilter INFLATE;proxy-html;DEFLATE ProxyHTMLURLMap /ai/ / </Location> </VirtualHost> Notes: I relied heavily on the documentation at: <http://www.apachetutor.org/admin/reverseproxies> This explains why the "Location" blocks are necessary. References to "docroot" are explicitly left unchanged both in and out. Of course, if you have split docroot for the different sites (which I haven't yet, but should), you will need to adjust this accordingly. "ProxyPass" adds "/ai/" to all other incoming requests (but a preceding line accepts references with the "/ai/", to respect existing bookmarks). "ProxyPassReverse" removes the "/ai/" in returned headers. "ProxyHTMLURLMap" removes the "/ai/" in links in the returned HTML. "INFLATE" and "DEFLATE" uncompress HTML for scanning then recompress. I am using the standard Windows installation of Apache, and had to add mod_proxy_html as a separate install (available pre-compiled); and of course enabled loading of mod_proxy and mod_deflate. (If you go to that site right now, you will still see the /ai/ in the URLs, as I have several more sites to configure in the proxy before I make it live.) Hope that helps, Paul -- Paul Hodges ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ---------------------------------------------------------------- ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------
