[opencms-dev] Configuring Multisite without mod_jk

Claus Priisholm cpr at codedroids.com
Thu Sep 25 19:12:55 CEST 2008


Maybe you can use the UrlRewriteFilter (http://tuckey.org/urlrewrite/) 
though I would think that you somehow should do a virtual host like 
setup in tomcat as well (unless you only run one instance, as ROOT).

Fidel Viegas wrote:
> On Tue, Sep 23, 2008 at 4:00 PM, Fidel Viegas <fidel.viegas at gmail.com> wrote:
>> Hi folks,
>>
>> I have been reading the documenation about setting up opencms or
>> multisites, and I was wondering if there an alternative way of
>> configuring opencms using only tomcat. Also, is there a way of getting
>> rid of the /opencms/opencms/ prefix by using only tomcat?
> 
> Ok, I guess that for mulsite settings I really have to use mod_jk.
> Now, with regards to getting rid of the /opencms/opencms/ from within
> tomcat only, I tried to mess with the web.xml and I tried everything
> to get rid of it. I managed to get rid of the first /opencms by making
> the app ROOT. Now, when I tried to change the context-param and the
> servlet-mapping to /*, it did not work. A blank page would show up. I
> can, though, change from opencms to any other name. That works fine.
> 
> Does anyone know a workaround to this? What should I set both the
> context-param and the servlet-mapping to in order to get rid of the
> last opencms prefix?
> 
> This is what I have tried:
> 
>     <context-param>
> 
>         <param-name>OpenCmsServlet</param-name>
> 
>         <param-value>/*</param-value>
> 
>     </context-param>
> 
>     <servlet-mapping>
> 
>         <servlet-name>OpenCmsServlet</servlet-name>
> 
>         <url-pattern>/*</url-pattern>
> 
>     </servlet-mapping>
> 
> And I don't get any error message from trying to access the
> /system/login, just a blank page.
> 
> Can someone help me with this?
> 
> Thanks in advance,
> 
> Fidel.
> 
> _______________________________________________
> 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
> 

-- 
Claus Priisholm, CodeDroids ApS
Phone: +45 48 22 46 46
cpr (you know what) codedroids.com - http://www.codedroids.com
cpr (you know what) interlet.dk - http://www.interlet.dk
-- 
Javadocs and other OpenCms stuff: 
http://www.codedroids.com/community/opencms



More information about the opencms-dev mailing list