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

How can I configure Tomcat that http://hostname:5555/ can be redirected to http://hostname:8080/somepath


share|improve this question
up vote 1 down vote accepted

If you have Apache in front of your Tomcat instance, you can do this using Apache's proxy support. A typical solution might look like this:

<Location /somepath/>
ProxyPass http://localhost:5555/
ProxyPassReverse http://localhost:5555/

You'll find more information in the Apache and Tomcat documentation, and a quick visit to Google will turn up lots of useful results.

share|improve this answer
The location of your Apache configuration is somewhat OS/distribution dependent, but it's usually called httpd.conf. On RHEL (and variants) you typically drop files into /etc/httpd/conf.d rather than modifying the main configuration file. This question (and others you may have) are already well documented, and you may want to spend some time looking through the information already available to you. – larsks Jul 5 '11 at 15:44
I don't have apache, only Tomcat – Benjamin Harel Jul 5 '11 at 16:01

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.