R: [opencms-dev] Remove /opencms/opencms from URL (ray)

Campione Aldo aldo.campione at siemens.com
Thu Dec 4 15:02:01 CET 2003


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

But the file ./<tomcatdir>/conf/auto/mod_jk.conf is autogenerated so each
time I restart Tomcat I have to edit it ??


-----Messaggio originale-----
Da: RaEmanuel at aol.com [mailto:RaEmanuel at aol.com] 
Inviato: martedì 2 dicembre 2003 7.23
A: opencms-dev at opencms.org
Oggetto: [opencms-dev] Remove /opencms/opencms from URL (ray)


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

_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20031204/4af3248c/attachment.htm>


More information about the opencms-dev mailing list