You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jarecsni János <ja...@chello.hu> on 2002/02/14 16:02:54 UTC

Apache - Proxy - Tomcat

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:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>