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

1 Answer 1

5

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

Please refer:

5
  • 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, 2020 at 11:16
  • 1
    It's available now. I just deployed this change to my server to add the secrets. Apr 20, 2020 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 9, 2020 at 10:32
  • 1
    @Viraj don't put quotes around the secret, i.e. ProxyPass / ajp://127.0.0.1:8009/ secret=123 Sep 16, 2020 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, 2021 at 17:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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