tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stubenrauch,Andreas" <me...@erv.de>
Subject RE: tomcat and rewrite
Date Fri, 01 Dec 2000 09:15:46 GMT
I'm using a similair aproach with mod_jk and it works.
 Perhaps mod_jserv is not handling the rewriten url correctly

> -----Original Message-----
> From: hatim [mailto:hatnet@ifrance.com]
> Sent: Friday, December 01, 2000 9:55 AM
> To: tomcat-user@jakarta.apache.org
> Subject: tomcat and rewrite
> 
> 
> 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
> 
> 
> 

Mime
View raw message