[opencms-dev] How to suppress 'opencms/opencms/' prefix
Peter Birchmeier
peterbirchmeier at hotmail.com
Thu Oct 6 13:25:54 CEST 2005
Hi
there are several methods.
if you setup OpenCms in the ROOT-webapp, you simplify the rewriting task
proxy-method:
--------------------
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/resources/.*$
RewriteCond %{REQUEST_URI} !^/export/.*$
RewriteCond %{REQUEST_URI} !^/opencms/.*$
RewriteCond %{REQUEST_URI} !^/setup/.*$
RewriteRule ^/(.*)$ /opencms/$1
RewriteRule ^/(.*)$ http://domain:8081/$1 [P]
ProxyPassReverse / http://domain:8081/
make sure you use the same domain-name in the server.xml:
<Host name="domain" debug="0" appBase="webapps" ...
method with JK-mount
---------------------------------
see Sebastian Himberger's howto:
http://www.opencms-forum.de/viewtopic.php?t=713
and finally i'm checking the method of rewriting uris inside the
webapp-container-application (e.g. tomcat) by a filter class: tuckey's
UrlRewriteFilter. but at the moment there are some strange behaviours, see
http://mail.opencms.org/pipermail/opencms-dev/2005q4/019939.html
>From: <shishank.mathur at wipro.com>
>Reply-To: The OpenCms mailing list <opencms-dev at opencms.org>
>To: <opencms-dev at opencms.org>
>Subject: [opencms-dev] How to suppress 'opencms/opencms/' prefix
>Date: Wed, 5 Oct 2005 13:46:34 +0530
>
>
>Hi,
>
>How can I suppress the /opencms/opencms/ prefix usually required by
>OpenCms? I did read document
>'\alkacon-documentation\howto-apache-httpd\mod_proxy.html' but just
>wondering if any one has achieved the same with OpenCms 6_0_1 build,
>Weblogic 8.1 and Sql server.
>
>Thanks.
>
>Kind Regards,
>Shishank
>http://goshishank.blogspot.com <BLOCKED::http://goshishank.blogspot.com>
>
>
>
>
>
>Confidentiality Notice
>
>The information contained in this electronic message and any attachments to
>this message are intended
>for the exclusive use of the addressee(s) and may contain confidential or
>privileged information. If
>you are not the intended recipient, please notify the sender at Wipro or
>Mailadmin at wipro.com immediately
>and destroy all copies of this message and any attachments.
>
>
>_______________________________________________
>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
_________________________________________________________________
Behalten Sie Ihre Hotmails, den Messenger und die Suchfunktionen stets im
Auge! http://toolbar.msn.ch?&DI=165&XAPID=2170
More information about the opencms-dev
mailing list