setting up AJP secret between Apache and Tomcat

18,929

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

Please refer:

Share:
18,929

Related videos on Youtube

Matt
Author by

Matt

Updated on September 18, 2022

Comments

  • Matt
    Matt almost 2 years

    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

  • galusben
    galusben over 4 years
    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?
  • Kellen Murphy
    Kellen Murphy about 4 years
    It's available now. I just deployed this change to my server to add the secrets.
  • Viraj
    Viraj almost 4 years
    @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.
  • Kellen Murphy
    Kellen Murphy almost 4 years
    @Viraj don't put quotes around the secret, i.e. ProxyPass / ajp://127.0.0.1:8009/ secret=123
  • cp.
    cp. almost 3 years
    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?