Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Tomcat application. I now want reverse proxy some of the pages to a different server listening on a different port. On a regular apache server, I would do the following.

ProxyPass /dir1 http://localhost:1234/dir1

ProxyPassReverse /dir1 http://localhost:1234/dir1

This would pass all URLs under dir1 to the other server listening on port1234. How would I do the same thing on Tomcat?

Note that my server runs only Tomcat & Java. I do not run Apache in my setup. the server on port 1234 is separate & not Apache or Tomcat.

share|improve this question
up vote 3 down vote accepted

Noodle seems to do the trick. It's a bunch of Java classes which lets you create servlets which you deploy into your Tomcat, which will run filters on the original URL and transparently redirects the request to another URL.

Other methodes are available as well, the Tomcat Wiki as a collection.

Other than that, there's still Apache, nxing, haproxy and other methodes which can do it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.