Link to home
Start Free TrialLog in
Avatar of derekl
derekl

asked on

Connecting Apache 2.2 and Tomcat 5.5.17

I'm trying to connect Tomcat to Apache using mod_proxy_ajp.  Here are the relevant configuration sections.

From httpd.conf:

#
# Configure AJP proxying
#
<Location /*/WEB-INF/>
    Deny from all
</Location>

#
# Forward all newtowne requests
#
<Location /newtowne/>
    ProxyPass            ajp://127.0.0.1:8009/
    ProxyPassReverse      ajp://127.0.0.1:8009/
    Allow from all
</Location>

From server.xml:

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector address="localhost" port="8009"
               protocol="AJP/1.3" enableLookups="false"
             minSpareThreads="20" maxSpareThreads="100"
             maxThreads="200" connectionTimeout="60000" />

However, when I attemp tto request a resource that should get mapped to the Tomcat engine, I see the following error in the Apache logs:

[Sat Jul 22 16:50:22 2006] [error] (13)Permission denied: proxy: AJP: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed
[Sat Jul 22 16:50:22 2006] [error] ap_proxy_connect_backend disabling worker for (127.0.0.1)
[Sat Jul 22 16:50:22 2006] [error] proxy: AJP: failed to make connection to backend: 127.0.0.1
[Sat Jul 22 16:50:24 2006] [error] proxy: AJP: disabled connection for (127.0.0.1)

It looks as though Apache is attempting to Proxy the request as directed, but gets not further than that, as it is denied permission to speak to the AJP server.   As far as I can tell the AHP connector starts successfully since I see no indications otherwise in the logs.

Any ideas?

Thanks in advance.

Derek
ASKER CERTIFIED SOLUTION
Avatar of Tol_cv
Tol_cv

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial