Solved

Connecting Apache 2.2 and Tomcat 5.5.17

Posted on 2006-07-23
3
8,469 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
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Leverage Browser Caching 7 61
transferring settings for apache and mysql 2 83
.htaccess rewrite url with querystring problem 13 85
HHTP and HTTPS redirect question 3 94
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

943 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

Need Help in Real-Time?

Connect with top rated Experts

4 Experts available now in Live!

Get 1:1 Help Now