<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Filip, > > Do you happen to have any examples of your mod_proxy setup? I've been > trying to get mod_proxy and mod_proxy_ajp working (apache 2.2.2, tomcat > 5.5.17), and have been running into a wall. No matter what I've tried, > tomcat always returns a "requested resource not available" error. >
You should probably try the simplest example first (assuming Tomcat and Apache are on the same machine, and that the AJP/1.3 Connector is using it's default port of 8009): ProxyPass /myapp ajp://localhost:8009/myapp Then you can start on the fancier stuff like: RewriteRule (.*)\.jsp$ ajp://localhost:8009/$1.jsp [P] > Cheers, > -- Steven > > Filip Hanik - Dev Lists wrote: >> mod_proxy >> - easy to configure >> - scales without limitation >> >> mod_jk >> - hard to compile,configure >> - in our tests, would not scale well at all >> >> Differences are: >> mod_jk supports load balancing and also passing along SSL info to Tomcat. >> mod_proxy is a regular http proxy, remember to set "ProxyPassPreserveHost >> On", and then set the proxyPort directive on your <Connector> in >> server.xml >> >> Filip >> >> Mann, Bradley wrote: >>> What are the exact differences between mod_proxy and mod_jk? What are >>> the benefits/drawbacks of each? >>> >>> Thanks, >>> >>> Brad Mann >>> Software Engineer - Information Access Services >>> HARRIS Corporation / GCSD >>> (321) 984-6292 >>> >>> -----Original Message----- >>> From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: >>> Wednesday, June 07, 2006 4:45 PM >>> To: Tomcat Users List >>> Subject: Re: HTTPD with Tomcat >>> >>> you can also make your own life very easy, by switching to mod_proxy, >>> and voila, everything works :) >>> >>> Filip >>> >>> >>> Mann, Bradley wrote: >>> >>>> Hello, >>>> >>>> I am attempting to setup a scenario in which Tomcat is hosting a web >>>> application behind HTTPD using the Jakarta Connector. I have installed >>>> the following on Solaris 10: >>>> >>>> Apache HTTPD 2.0.58 >>>> Apache Tomcat 4.1.31 >>>> Apache Jakarta Tomcat Connector 1.2.15 >>>> >>>> I am able to access HTTPD's document root, and I am able to access my >>>> web application through Tomcat. I am having trouble, however, >>>> understanding how to get the two to interact using the connector. I >>>> believe I have it setup properly, with mod_jk located in the /modules >>>> directory of HTTPD, and with an Include statement at the end of >>>> httpd.conf that points to the /conf/auto/mod_jk.conf of Tomcat. Under >>>> the Server section of server.xml in the /conf directory of Tomcat, I >>>> have added a listener as follows: >>>> >>>> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" >>>> modJk="/usr/apache/modules/mod_jk.so" /> >>>> >>>> which points to the location of mod_jk.so. >>>> >>>> I have added the same line under the Host section, with the added >>>> attributes: >>>> >>>> append="true" forwardAll="false" >>>> >>>> My main question is, how do I get my static content from HTTPD to link >>>> to my web application under Tomcat. Do I simply add the Tomcat port >>>> number (8080) to the links in my static content, or is there a more >>>> eloquent way of doing things? I thought the point of the connector was >>>> to prevent having to do this so the experience is seamless for the >>>> >>> user. >>> >>>> Any help or ideas are greatly appreciated. >>>> >>>> Thanks, >>>> >>>> Brad Mann >>>> Software Engineer - Information Access Services >>>> HARRIS Corporation / GCSD >>>> (321) 984-6292 >>>> >>>> >>>> >>> ------------------------------------------------------------------------ >>> >>>> No virus found in this incoming message. >>>> Checked by AVG Free Edition. >>>> Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date: >>>> >>> 6/6/2006 >>> >>>> >>> >>> >>> >> >> > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]