[opencms-dev] Subdomains and path mapping
Stéphane Martin
martin at webtrio.de
Mon Jun 16 15:03:27 CEST 2008
Hello Fabian,
thanks a lot for your helping hand, I will test your recommendations.
Best regards
Stephane
------------------------------
Message: 3
Date: Mon, 16 Jun 2008 10:00:36 +0200
From: Fabian Huschka <fabian.huschka at componio.net>
Subject: Re: [opencms-dev] Subdomains and path mapping
To: The OpenCms mailing list <opencms-dev at opencms.org>
Message-ID: <48561DA4.4020605 at componio.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello Stephane,
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
Stephane 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
>
> Stephane Martin
More information about the opencms-dev
mailing list