apache-2.4 – Setting Up AJP Secret Between Apache and Tomcat

ajpapache-2.4tomcat

I'm having trouble setting up a secret between Apache (2.4.41) and Tomcat (7.0.99). I think I have it setup correctly in Tomcat (server.xml):

<Connector ... secretRequired="true" secret="123" />

When I try to setup the Apache end (httpd-ajp.conf):

ProxyPass / ajp://127.0.0.1:8009/ secret="123"

Apache fails to start and the Apache error log says:

AH00896: failed to make connection to backend: 127.0.0.1

and

AH00957: AJP: attempt to connect to 127.0.0.1:8009

If it makes any difference, I'm using XAMPP for Windows 7.3.13

Best Answer

mod_proxy_ajp didn't support the secret option before Apache 2.5.

Please refer: