Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.