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

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


Hi

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
Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/JSNode01Cell/opencms_war.ear/opencms.war/"

# Allow accessing the document root directory
<Directory "C:/Program
Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/JSNode01Cell/opencms_war.ear/opencms.war/">
Options FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

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}" !-f
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f
RewriteRule .*
http://127.0.0.1:9080/opencms/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING}
[P]

# 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 / http://127.0.0.1:9080/opencms/opencms/
ProxyPassReverse / http://127.0.0.1:9080/opencms/opencms/

</VirtualHost>

-- 
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