Solved

Connecting Apache 2.2 and Tomcat 5.5.17

Posted on 2006-07-23
3
8,505 Views
Last Modified: 2008-01-09
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
0
Comment
Question by:derekl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
Tol_cv earned 250 total points
ID: 17175159
you should not use proxypass with  ajp connectors, with ajp connectors use mod_jk, JKmount directoves,  configure workers in worker.properties etc.
if you want to use proxypass:

ProxyPass          http://127.0.0.1:8080/
    ProxyPassReverse     http://127.0.0.1:8080/

assuming 8080 is your tomcat port (not ajp connector port).
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question