tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarecsni János <>
Subject Apache - Proxy - Tomcat
Date Thu, 14 Feb 2002 15:02:54 GMT

I have the following lines in my httpd.conf (I use Apache in front of a
JBoss244-Tomcat402 stack):

<VirtualHost bookstore>
    ServerName bookstore
    RewriteRule !^/istore(.*) - [C]
    RewriteRule (.*) http://bookstore/istore$1 [P]

I'd like apache to proxy throughput all request that does not have "/istore"
back to the server again. Thus I could call a servlet, JSP without
specifying the webcontext. It really works with one huge drawback. It seems
that cookies are gone when Apache redirects the request internally.

Does anyone know how to configure Apache to be able to both rewrite a url
AND ask tomcat to process it???


Jarecsni, János
MORGAN HILL CONSULTING, Internet Applications Unit :: Phone+Fax: + 36 1 484 0392

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message