You will probably want to set emptySessionPath to true

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
http://marc.theaimsgroup.com/?l=tomcat-user&m=114082698006999&w=2

Otherwise, the browser will send the cookie for /mywebapp as that is the
context which Tomcat will set JSESSIONID under.

Unless you don't need sessions.

Tim

-----Original Message-----
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 2:21 AM
To: Tomcat Users List
Subject: Re: apache(v2.0) front-end to jboss(v4.0.3)/tomcat5.5 webapp:
context path prepend ?

Xin Herbert Wu wrote:
> 
> (1) Assume I have a web app called mywebapp.war and I deployed it to the
> jboss server(http1.1 connector listens on port 8080). I can access this
web
> app with the URL http://localhost:8080/mywebapp/index.html (easy for
> development)
> (2) Now I want to add the apache server(assuming on port 80) as the
> front-end to access mywebapp.war with shorter url
> http://localhost:80/index.html (nice for production)
>

JkMount /mywebapp/* yourworker


RewriteEngine On
RewriteCond %{REQUEST_URI} ^/(.*)$
#You can have Apache serve static content
#for example /mywebapp/images/*
#RewriteCond %{REQUEST_URI} !^/images/.*$
RewriteRule ^/(.*) /mywebapp/$1 [PT]


Regards,
Mladen.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to