-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jim,
Jim Willeke wrote:
| I have moved a sever from port 9080 to using another tomcat instance
| (on port 80) and have renamed the sites.
|
| I want to intercept all the requests to the 9080 port and analyze the
| incoming URL and redirect to the
From: Jim Willeke [mailto:[EMAIL PROTECTED]
Subject: Force All Requests to a single servlet
I want to intercept all the requests to the 9080 port and analyze the
incoming URL and redirect to the new location(s).
You didn't bother to tell us what version of Tomcat you're using, so the
links
Tomcat 5.5
Ok, I deployed to:
/tomcat9080/webapps/ROOT/WEB-INF
web.xml
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
servlet
servlet-nameRedirect/servlet-name
servlet-classcom.willeke.web.Redirect/servlet-class
/servlet
servlet-mapping
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jim,
Jim Willeke wrote:
| Almost works.
|
| The only issue I have is when a URL like:
|
http://willeke.com:9080/wikildap/Wiki.jsp?page=UsefullCommandsForEdirectory
|
| The redirect is to:
| http://ldapwiki.willeke.com/Wiki.jsp
Sounds like you are