The mod_rewrite gets loaded in my http.conf. I also added the rewrite rule
but it did not work. According to the application name jserv-servlet it
seems to me as this rewrite rule is meant to be used with jserv not with
mod_jk ?! Nowhere in my http.conf file could I find a definition of the
application jserv-servlet, which I guess must be defined in order for this
rule to work. Are you running Tomcat with Apache ??

-----Ursprüngliche Nachricht-----
Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. April 2001 07:41
An: '[EMAIL PROTECTED]'
Betreff: AW: Tomcat with Apache/URLRewritting and mod_rewrite


For the remarks see below:

> -----Ursprüngliche Nachricht-----
> Von: Tassilo Pilati [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 17. April 2001 17:47
> An: [EMAIL PROTECTED]
> Betreff: Tomcat with Apache/URLRewritting and mod_rewrite
<snip/>
> <IfModule mod_rewrite.c>
>   RewriteEngine On
>   RewriteRule  ^(/.*;jsessionid=.*)$  $1  [T=jserv-servlet]
> </IfModule>
<snip/>
The mod_rewrite must be loaded to enable the rule. (e.g.:
LoadModule rewrite_module /usr/local/apache/lib/mod_rewrite.so)

<snip/>
> I also was wondering what the [T=jserv-servlet] means ?
<snip/>

>From the mod_rewrite documentation:

'type|T=MIME-type' (force MIME type)
  Force the MIME-type of the target file to be MIME-type. For
  instance, this can be used to simulate the mod_alias directive
  ScriptAlias which internally forces all files inside the
  mapped directory to have a MIME type of
  ''application/x-httpd-cgi''.

Reply via email to