tomcat-users mailing list archives

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

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

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

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???

Thanks
János


--
Jarecsni, János
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:Jarecsni.Janos@morganhillconsulting.hu
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message