tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Goyal -X (anigoyal - Aricent Technologies at Cisco)" <>
Subject redirect valve in tomcat
Date Mon, 20 May 2013 14:32:15 GMT
Hi All,

I am adding a new service in tomcat with name "catalina_new" and deploy an "abc" application
under this.
This application was in running under catalina service previously.
This new service is using connector port 8181 for http and 8444 for https.
Now I want all my request coming for this application on port 8080 to redirect on port 8181
for http ,8443 to redirect on port 8444.
My tomcat server.xml is using a valve class <Valve className=""
Some redirection logic is already written in this valve class for some other application but
that is only redirecting the url with  same port.
                if (request.getContextPath().equals("/ciscopca") && request.getRequestURI().startsWith("/ciscopca/unityinbox/"))

How I can make a check here for request to redirect based on port number.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message