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.

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>
share|improve this question
    
Do you have mod_proxy loaded? –  EEAA Apr 29 '11 at 2:50

1 Answer 1

up vote 2 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.

share|improve this answer

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.