[opencms-dev] New/better solution for generating nice URLs?
Roman Uhlig
roman.uhlig at knve.de
Tue May 26 17:10:44 CEST 2009
Thanks for your reply, Tobias.
We actually tried several setups in Apache httpd already without being
successful. The best solution yet was like this one:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/opencms/opencms/?.*
RewriteCond %{REQUEST_URI} !^/opencms/export/?.*
RewriteCond %{REQUEST_URI} !^/opencms/resources/?.*
RewriteCond %{REQUEST_URI} !^/opencms/webdav/?.*
RewriteRule (.*)$ /opencms/opencms%{REQUEST_URI} [PT]
Combined with point 2 from my list it generates the desired urls, but still
leaves one big problem unsolved: automatically generated internal links
(e.g. via <cms:link>) will still point to the long version of the url, which
then will be used by search engines or for bookmarks.
Roman
Tobias Herrmann wrote:
>
> Dear Roman Uhlig,
>
> using mod_jk and mod_rewrite on Apache it shouldn't be a problem to
> achieve the URL you stated under 4. You will probably need at least one
> additional rewrite rule for each 'other' web-application running in your
> servlet container. These rewrite rules would direct specific URLs to
> these applications and all other requests to your OpenCms instance.
>
> Best regards,
>
> Tobias
>
> -------------------
>
> Alkacon Software GmbH - The OpenCms Experts
> Tobias Herrmann
>
> http://www.alkacon.com
> http://www.opencms.org
>
> Visit OpenCms Days 2009 Conference and Expo
> June 15 to June 16 2009 in Cologne, Germany
> http://www.opencms-days.org
>
>
>
>
>
> Roman Uhlig schrieb:
>> I'd just like to ask if there is any new approach/solution
>> planned/available
>> for generating SOE-friendly URL's for OpenCms web applications. I know
>> there
>> are some solutions (Sebastian Himberger etc.), but I'm talking of a more
>> production-like multi-server setup, where web proxy/server and
>> application
>> container are not running on the same machine.
>>
>> That's the situation right now:
>>
>> 1. OpenCms standard installation
>>
>> www.domain.com/opencms/opencms/site/category1/subcategory2
>>
>> -> absolutely horrible, not only for SOE
>>
>> 2. with site container ("/sites/site")
>>
>> www.domain.com/opencms/opencms/category1/subcategory2
>>
>> -> not much better
>>
>> 3. OpenCms as ROOT webapp
>>
>> www.domain.com/opencms/category1/subcategory2
>>
>> -> we are getting somewhere
>>
>> 4. OpenCms behind a web proxy/server
>>
>> www.domain.com/category1/subcategory2
>>
>> -> thats what we want
>>
>>
>> The problem is, that 3 and 4 are hard to do or impossible in a
>> multi-server
>> environment, where several webapps may reside in one servlet container.
>> E.g.
>> requests to one of our application servers (Tomcat 6) are tunneled
>> through
>> Apache mod_jk on another server, while the application server is running
>> a
>> Wicket webapp and several other things.
>>
>> So thats why I'd like to throw the question in, if there are known
>> solution
>> together with OpenCms or if there is something planned for upcoming 7.5
>> or
>> later releases? Also I'd be interested if other people have this problem
>> in
>> times where SOE optimization gets crucial.
>>
>> Thank you in advance,
>> Roman
>>
>
> _______________________________________________
> 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
>
>
--
View this message in context: http://www.nabble.com/New-better-solution-for-generating-nice-URLs--tp23722232p23725155.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list