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.

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

Thanks

share|improve this question

1 Answer 1

up vote 0 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/
</Location>

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

 
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.