[opencms-dev] Subdomains and path mapping
Fabian Huschka
fabian.huschka at componio.net
Mon Jun 16 10:00:36 CEST 2008
Hello Stéphane,
the solution is pretty simple:
1. Configure a virtual host for your subdomain within your webserver
(e.g. subdomain.domain.tld)
2. Append mod_jk directives for this virtual host
3. Withihn the opencms-system.xml file
(../WEB-INF/config/opencms-system.xml) add a new site to the sites section:
<site server="subdomain.domain.tld" uri="/sites/<path to the directory
you want to map>/">
<!-- optional
<secure server="https://subdomain.domain.tld" exclusive="false"
error="false"/>
-->
</site>
Restart your application server (e.g. Tomcat) and your webserver.
Regards,
Fabian
Stéphane Martin schrieb:
> Dear list,
>
> we are using openCMS 7.0.4 with Tomcat and mod_jk and would like to map
> subdomains on paths of the opencms project. I have browsed the searchable
> archives of the mailing list but could not find a solution to our
> requirement.
>
> We would like to map subdomains to paths of the cms system and would be
> happy if someone of you could point us in the right direction.
>
> Best regards
>
> Stéphane Martin
>
More information about the opencms-dev
mailing list