6

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

7

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

Please refer:

6
  • 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? Commented Mar 26, 2020 at 11:16
  • 1
    It's available now. I just deployed this change to my server to add the secrets. Commented 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. Commented 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 Commented 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? Commented Aug 20, 2021 at 17:15

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.