tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brueggemann, Eric" <Eric.Brueggem...@CTNY.COM>
Subject Rewriting URL's on Win32
Date Tue, 01 Aug 2000 15:25:14 GMT
Hi all,

I'm using Apache, mod_jserv, mod_rewrite, and Tomcat on a Win2000 box.
I have mod_jserv specified before mod_rewrite, as suggested in all the
faq's.

What I want to accomplish is:

  ApJServMount /sample/servlet /sample
  RewriteEngine on
  RewriteRule ^/index\.html$  /sample/servlet/HelloServlet [PT]

Essentially, I'd like to access http://localhost/index.html and end up
viewing the output of my HelloServlet.

Once /index.html is rewritten to /sample/servlet/HelloServlet, mod_jserv
properly kicks in and sends the request to Tomcat.  However, when Tomcat
gets the request, it ends up supplying its index.html file in its /ROOT
context.  Notice that this isn't even a context I've mounted...  Is
Tomcat even seeing my rewritten request? What the heck is it doing?

FWIW, an external request to
http://localhost/sample/servlet/HelloServlet works fine.

I'll admit that I'm unfamiliar with the interaction between mod_jserv
and tomcat.  How is this request processed?

Thanks in advance.

Cheers,
Eric


Mime
View raw message