You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by bl...@ironwire.net on 2006/05/31 01:55:39 UTC
Help using mod_proxy_ajp
I'm using apache 2.2.2, with mod_proxy_ajp, and tomcat 5.5.17. I'm
trying to configure a set up that will allow me to proxy certain URLs
like http://ironwire.net/tomcat/ to tomcat for processing.
Here are the relevant sections of my current server.xml file, including
the contexts I set up to try and handle different paths:
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" enableLookups="false"
proxyName="ironwire.net" proxyPort="80" protocol="AJP/1.3"
maxThreads="50" minSpareThreads="2" maxSpareThreads="25"
address="127.0.0.1" />
<Engine name="localhost" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
<Host name="localhost" appBase="/usr/local" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="tomcat/webapps" />
<Context path="/" docBase="www/ironwire.net" reloadable="true" />
<Context path="/tomcat" docBase="tomcat/webapps"
reloadable="true" />
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="/var/log/tomcat" pattern="combined" />
</Host>
</Engine>
</Service>
And here are the proxy settings from my httpd.conf file:
ProxyRequests Off
ProxyPass /admin !
ProxyPass / ajp://localhost:8009/
ProxyPass /tomcat/ ajp://localhost:8009/tomcat/
Whenever I try either URL (http://ironwire.net or
http://ironwire.net/tomcat/), the server replies with a 404 error
stating: The requested resource (resource) is not available.
Can anybody help me out with this?
Cheers,
-- Steven
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org