A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Configuring Apache Web Server with Tomcat
Joined: May 11, 2006
Jul 14, 2009 08:47:50
I am trying to configuring apache webserver with
using AJP but i am not sure am i doing it right or not.
Here are the steps that i followed
Enabled required module in httpd.conf file
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
Added the ifModule condition in httpd.conf file
<IfModule mod_proxy> ProxyPass / ajp://localhost:8009/ ProxyPassMatch ^(/photos/.*\.jpg)$! </IfModule> Alias /photos "F:\projects\AL\Photos" <Directory "F:\projects\AL\Photos"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory>
Added the worker.properties file to Catalina_home/conf directory with follwoing properties
worker.list=testWorker worker.testWorker.port=8009 worker.testWorker.host=localhost worker.testWorker.type=ajp13
And finally adding the connector in server.xml file of tomcat
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009" minProcessors="5" maxProcessors="75" acceptCount="10" debug="0" />
Now i am trying to
to browse some
file at the following location "http://localhost:8009/examples/jsp/jsp2/el/basic-arithmetic.jsp" which is working fine. but i want to browse this file at
Have i done it right or there is something else that i can do?
The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
Joined: May 11, 2006
Jul 15, 2009 09:26:35
I want apache httpd running on front and wants to forward the jsp/servlet requests to tomcat only. I want my static pages and photos to be processed by apache and want to configure it through mod_ajp
I have come up with some settings which actually helped me in forwarding the reqeust to tomcat. But now i can't add
directive to it.. here are the configurations i have done in httpd.conf file
<VirtualHost *:80> ServerName localhost <Proxy *> AddDefaultCharset Off Order deny,allow Allow from all </Proxy> ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ #ProxyPassMatch ^(/photos/.*\.jpg)$! Alias /photos "F:\projects\AL\Photos" <Directory "F:\projects\AL\Photos"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost>
How can if some request is for photos, don't forward, else forward it. Suggestions?
currently i have
I agree. Here's the link:
subject: Configuring Apache Web Server with Tomcat
install tomcat on server with apache
How to test weblogic 9.2 Cluster Setup
Apache 2.0.53 + Tomcat 5.5.7 integration on Windows using mod_jk
apache (tomcat) not parsing XML file?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014