[opencms-dev] Re move /opencms/opencms/ on Websphere 7

Kevin Tan chen.qian at ogilvy.com
Wed May 4 06:29:05 CEST 2011


I need to remove the 2 opencms from url on WebSphere 7 & IBM Web Server 7.

Here is the httpd.conf file:

NameVirtualHost *:80

<VirtualHost *:80>

ServerName localhost
ServerAdmin webmaster at opencms.org
DocumentRoot "C:/Program

# Allow accessing the document root directory
<Directory "C:/Program
Options FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all

ErrorLog logs/errors_localhost.log
CustomLog logs/access_localhost.log combined

RewriteEngine On
RewriteLog logs/rewrite_localhost.log
RewriteLogLevel 9

RewriteCond %{REQUEST_URI} ^/opencms/export/(.*) [NC]
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f

# If the request starts with /${WEBAPP_NAME}/resources, delete the
/${WEBAPP_NAME} prefix
RewriteCond %{REQUEST_URI} ^/opencms/resources/.*$
RewriteRule ^/opencms/(.*)$ /$1 [PT]

# Also redirect all other 404 errors to OpenCms
ErrorDocument 404 /system/shared/handle404.html

RedirectPermanent /opencms/opencms/ http://localhost/
ProxyPass /opencms/opencms/ !

ProxyPass /opencms/resources/ !
ProxyPass /opencms/export/ !

ProxyPass /
ProxyPassReverse /


View this message in context: http://old.nabble.com/Remove--opencms-opencms--on-Websphere-7-tp31538446p31538446.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.

More information about the opencms-dev mailing list