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

My apache redirects to my tomcat

    ProxyPass http://localhost:8080/
    ProxyPassReverse http://localhost:8080/

But my tomcat has more webapps, and I would have another apache http virtualhost pointing to this tomcat.

I need this behavior:  --> tomcat http://localhost:8080/myexamples/tomcatapp1  --> tomcat http://localhost:8080/myexamples/tomcatapp2 --> tomcat http://localhost:8080/foo

myexamples can be a folder? How I configure tomcat to do that? What I need to use?

Many thanks!

share|improve this question

why do you need the myexamples folder? Couldn't you just deploy tomcatapp1 and tomcatapp2? These would be folders.

I think this could be what you are looking for:

   ProxyPass /tomcatapp1 http://localhost:8080/tomcatapp1
   ProxyPassReverse /tomcatapp1 http://localhost:8080/tomcatapp1

   ProxyPass /tomcatapp2 http://localhost:8080/tomcatapp2
   ProxyPassReverse /tomcatapp2 http://localhost:8080/tomcatapp2

   ProxyPass / http://localhost:8080/foo
   ProxyPassReverse / http://localhost:8080/foo

Hope this helps.

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.