Hello Chuck,

thanks for you reply.
The UrlRewriteFilter is almost solved my problem. But there is an unexcepted
effect: when I opened the page with the http://localhost:4041/YYY the URL
changed to http://localhost:8080/XXX. Is it possible to hide this redirect
anyway? 


Caldarale, Charles R wrote:
> 
>> From: AlbundySzabolcs [mailto:albundyalbu...@freemail.hu]
>> Subject: Tomcat: two context path for one webapp
>> 
>> I have a web app and this web app is deployed to the
>> $TOMCAT_HOME/webapps/XXX directory.
>> I can reach that on the http://localhost:8080/XXX address
>> BUT, I would like to reach the web app on the http://localhost:8080/YYY
>> address too.
> 
> The easiest way is to just use a URL rewrite filter to forward or redirect
> all requests for the secondary name to the real one:
> http://tuckey.org/urlrewrite/
> 
> You don't need to go through the unnecessary hassle and performance
> degradation of adding httpd to the mix.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tomcat%3A-two-context-path-for-one-webapp-tp26304708p26333375.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to