[opencms-dev] How to publish without /opencms/opencms

Claus Priisholm cpr at codedroids.com
Tue Sep 20 08:54:58 CEST 2005


It seems that there are three scenarios:

1. Using Apache as front-end using mod_proxy (aka the setup described by 
Alkacon)

2. Using Apache as front-end using mod_jk and mod_rewrite (mod_jk is the 
'native' Apache - Tomcat connector)

3. Using Tomcat as primary web-server, there seem to be appropriate 
tomcat-filters available as mentioned in one of the previous postings.

I've decided on using (2) since I'm somewhat familiar with the 
mod_rewrite and have been using mod_jk with OpenCms 5 for a long time 
without any problems (though without rewriting the URLs).

http://sydros.net/comp/tutorials/opencms/apache-integration/ holds the 
same description by Sebastian Himberger as listed elsewhere - only in 
this one the case-problems have been fixed (some of the other versions 
have "OpemCms" appear in the instructions where it should really be 
"opencms" (assuming a default installation).

This tutorial works very nicely (an example is www.packetfront.com which 
uses setup similar to the one described in the tutorial), but I have a 
couple of comments:

Be mindful of the mod_jk plugin. First of all it is mod_jk, not mod_jk2 
- the latter is deprecated. The version must be 1.2.6 or newer as 
earlier versions does not know the "no-jk" environment variable. If 
mod_jk is older everything will be fine except you will be missing the 
statically exported resources and if you access them directly you get an 
error page from tomcat.

Another issue is some Apache setups seemingly won't allow you access to 
stuff outside its "master" document root, so asking it to look in your 
CATALINA_HOME/webapps-directory will fail. Same problem as before - 
everything looks fine, except exported resources are not found - this 
time you will get an error page from apache stating it cannot access the 
resource. Nothing that cannot be solved by "ln -s" or perhaps by 
spending more time reading the Apache-documentation to find the cause 
for the behaviour...

Claus

Joe Desbonnet wrote:
> Pat,
> See this link
> http://cms.galway.net:8080/OpenCmsWiki/Wiki.jsp?page=HowtoMultiSite
> Let me know if it does not answer your question.
> 
> Joe.
> 
> 
> On 9/19/05, pat sad <hlp.psaad at gmail.com> wrote:
> 
>>Hy all,
>>
>>I know there has been many posting on that subject but could someone
>>please send me a link to a well documented tutorial on how to do a
>>successfull publish to a specific url and not have the
>>opencms/opencms/ included in the url ?
>>
>>I would be very grateful if someone could lead me to the right
>>direction, since I have been struggling with that issue for a long
>>time.
>>
>>Thank you.
>>
>>
>>_______________________________________________
>>This mail is send to you from the opencms-dev mailing list
>>To change your list options, or to unsubscribe from the list, please visit
>>http://mail.opencms.org/mailman/listinfo/opencms-dev
>>
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 

-- 
Claus Priisholm, CodeDroids ApS
cpr (you know what) codedroids.com - http://www.codedroids.com

Javadocs and other OpenCms stuff: 
http://www.codedroids.com/community/opencms



More information about the opencms-dev mailing list