You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by hatim <ha...@ifrance.com> on 2000/11/30 11:40:10 UTC

rewrite with apache-tomcat

hello all
i m french , so excuse me for my bad english !
i m tying to use the rewrite module to rewrite adresses like
http://mysite.com/toto/~hatim/toto.jsp to
http://mysite.com/toto/jsp/toto.jsp?D121DN=hatim
i m using apache 1.3 and tomcat 3.2b6
i can see in my browser a .jsp from a normal url like
http://mysite.com/toto/jsp/toto.jsp?D121DN=hatim
when i stop tomcat , and i use just apache , the rewrite work very well , i
can see the source code of the jsp in my browser ..

but when i started tomcat and apache ,and after clicking on
http://mysite.com/toto/~hatim/toto.jsp  i find this error in the tomcat logs
:
2000-11-30 12:23:11 - Ctx( /toto ): 404 R( /toto + /~hatim/toto.jsp + null)
JSP file not found

for infomation :

in the httpd.conf  i have
LoadModule jserv_module          libexec/mod_jserv.so
LoadModule rewrite_module     modules/mod_rewrite.so
.....
AddModule mod_jserv.c
AddModule mod_rewrite.c
....
include /app/jakarta-tomcat/conf/tomcat-apache.conf
....

RewriteEngine on
RewriteLogLevel 9
RewriteLog logs/rewrite.log
RewriteRule ^/toto/~([^/]+)/(.*\.jsp)$ /toto/jsp/$2?D121DN=$1 [PT,QSA]


 thank you very much for your help

hatim