5

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

Matt
  • 153
  • 1
  • 1
  • 4

1 Answers1

5

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

Please refer:

Piotr P. Karwasz
  • 5,292
  • 2
  • 9
  • 20
akidan
  • 66
  • 2
  • 1
    The docs says it is available from 2.4.42, but it is not released yet. Is there any way to know when it is supposed to be released? – galusben Mar 26 '20 at 11:16
  • 1
    It's available now. I just deployed this change to my server to add the secrets. – Kellen Murphy Apr 20 '20 at 19:50
  • @KellenMurphy what is the configuration you used ? Is `ProxyPass / ajp://127.0.0.1:8009/ secret="123"` working . my httpd fail to start with that. – Viraj Sep 09 '20 at 10:32
  • 1
    @Viraj don't put quotes around the secret, i.e. `ProxyPass / ajp://127.0.0.1:8009/ secret=123` – Kellen Murphy Sep 16 '20 at 18:01
  • also there need to be a space before the secret. However it takes you to the TC manager, how to you configure to go directly to an app as root, www.mysite.com with /mysite on TC? – cp. Aug 20 '21 at 17:15