[opencms-dev] Remove /opencms/opencms from URL (ray)
RaEmanuel at aol.com
RaEmanuel at aol.com
Tue Dec 2 07:24:01 CET 2003
Hi,
I had the same problem and agree, that the posted pdf of al-arenal.de doesen´t work proper.
I did the following steps to solve the problem (LINUX):
1) I installed the apache2 web-server and configured apache with mod_rewrite and mod_proxy:
# ./configure --prefix=/<dir>/apache2 \
--enable-rewrite --enable-rewrite=shared \
--enable-proxy --enable-proxy=shared \
--enable-ssl ----enable-ssl=shared
2) I installed the mod_jk.so too that Apache connect to Tomcat and use Tomcat like a servlet runner. Here is a tutorial I used:
http://www.galatea.com/flashguides/apache-tomcat-24-unix.xml
3) After this I edit the ./<tomcatdir>/conf/server.xml and defined the virtual domains (<hosts>) i need. Take care, that Tomcat starts normal on port 8080.
4) If you start Tomcat, a file called "./<tomcatdir>/conf/auto/mod_jk.conf" (the file is included by httpd.conf - see tutorial before) will be automaticly created from the source file ./server.xml. Edit "./<tomcatdir>/conf/auto/mod_jk.conf", skip to the first domain an include following apache rewrite statement:
RewriteEngine on
RewriteLog "/<directory>/rewrite.log
RewriteLogLevel 1
RewriteRule ^/(.*)$ /opencms/opencms/$1 [PT]
With this statement you create an Apache PassThru and the "/opencms/opencms" should be rid off.
I hope this is helpful!
Ray
More information about the opencms-dev
mailing list