All over the internet I see examples of people using ProxyPass, where the syntax looks something like this:

<Location />
    ProxyPass / ajp://localhost:8009/
    ProxyPassReverse / ajp://localhost:8009/
</Location>

But, that doesn't work for me. In my configuration of Apache 2.2.17 and Tomcat 5.5, if I try to do that, my server won't start and gives no clear error message in the logs that tells me why, BUT if I do it this way (shown below) , it does work . Why is this?? :

<Location />
    ProxyPass ajp://localhost:8009/
    ProxyPassReverse ajp://localhost:8009/
</Location>
link|improve this question

Do you have mod_proxy loaded? – ErikA Apr 29 '11 at 2:50
feedback

1 Answer

up vote 1 down vote accepted

The first example would work if you changed ajp to http as that is the http proxy syntax. The ajp proxy doesn't take the /path parameter like the http proxy does.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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