[opencms-dev] Multi-Site Configuration (ports vs hostnames)
Stephan Hartmann
hartmann at metamesh.de
Thu Jun 18 22:48:13 CEST 2009
Hi John,
OpenCms in fact does true virtual hosting. It determines which site to
choose by evaluating the request's host header (or being more exactly by
what the servlet container stores into the request object). OpenCms
matches this host name (and port) against the configured site server
names in opencms-system.xml.
I don't know much about Resin, but it may work if you connect every
virtual host in apache with mod_caucho to Resin.
You might even use a single virtual host with multiple ServerAliases in
apache, if you don't need HTTPS.
Good luck,
Stephan
John Burbridge schrieb:
>
> Hello OpenCms people,
>
>
>
> I'm working on setting up a multi-site configuration with OpenCms 7
> being run from Resin (instead of Tomcat). The docs on the wiki refer
> to how to perform this using tomcat and apache, creating a new port
> for each new site, then proxying the requests via apache to the
> appropriate port on Tomcat.
>
>
>
> http://www.opencms-wiki.org/MultiSite_configuration_instructions
>
>
>
> Does anyone know if this can be simplified by using true virtual
> hosting? Ie, instead of having multiple ports open, can the OpenCms
> handler figure out where to send the request based on the hostname in
> the request header? (this is essentially what apache would do to
> forward the request to the right port in tomcat anyway)
>
>
>
> I'm sure I can figure this out through some experimentation but
> thought I'd bounce the idea off the group for a head start.
>
>
>
> Thanks a mil,
>
> JB
>
> * *
>
> *John Burbridge*
>
> Web Development :: Salesforce.com IT
>
> O: (415) 536-6288 :: C: (415) 516-4620
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list