Ooops.. well done Milt, I missed that ajp13 v remote thing in the mod_jk.conf that'll definitely be a (if not the) problem. Mind you I can't work out where you can reset the name of the worker that will be generated by the mod_jk.conf. you might want to try editing your workers.properties file back such that the workers name is ajp13 rather than remote and just confirm whether that's the problem.
Cheers Tref ------------------------------------------------------ Tref Gare Development Consultant Areeba Level 19/114 William St, Melbourne VIC 3000 email: [EMAIL PROTECTED] phone: +61 3 9642 5553 fax: +61 3 9642 1335 website: http://www.areeba.com.au ------------------------------------------------------ "This email is intended only for the use of the individual or entity named above and contains information that is confidential. No confidentiality is waived or lost by any mis-transmission. If you received this correspondence in error, please notify the sender and immediately delete it from your system. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any communication directed to clients via this message is subject to our Agreement and relevant Project Schedule. Any information that is transmitted via email which may offend may have been sent without knowledge or the consent of Areeba." ------------------------------------------------------ -----Original Message----- From: Milt Epstein [mailto:mepstein@;uiuc.edu] Sent: Wednesday, 13 November 2002 8:58 AM To: Tomcat Users List Subject: Re: mod_jk Problem On Tue, 12 Nov 2002, Rudolph Araujo wrote: > Hi All, > > I am running Apache 1.3 and Tomcat 4.1.12 and am not being > able to link the two via mod_jk. The two are working correctly on > their own, but if I hit http://localhost/examples I get a 404 from > Apache (http://localhost:8080/examples does work). The logs say that > /var/www/html/examples does not exist hence it is obviously not > going to tomcat. My workers.properties files is as shown > > # BEGIN workers.properties > # > # Setup for apache system > # > # (optional) make this equal to CATALINA_HOME > workers.tomcat_home=/install/jakarta-tomcat-4.1.12 > # > # (optional) make this equal to JAVA_HOME > workers.java_home=/usr/java/j2sdk1.4.1_01 > # > ps=/ FWIW, you don't need any of the above. They're just macros/variables internal to this file, and since you're not using them elsewhere, you don't need them. > worker.list=remote > worker.remote.type=ajp13 > # Definition for Ajp13 worker > # > worker.remote.port=8009 > # change this line to match apache ServerName and Host name in server.xml > worker.remote.host=localhost > > # > # END workers.properties First, are you sure you're properly including the mod_jk.conf in your httpd.conf file? Second, I see one definite problem here -- in your workers.properties file above, the worker name is "remote", but in your mod_jk.conf below, the worker name is "ajp13" (that's the last parameter in your JkMount directives). Make them agree, i.e. be the same thing, and that should fix that problem. There may perhaps be other problems. Your mod_jk.log file should be informative in that regard. > The mod_jk.conf is auto-generated and is as dollows: > ########## Auto generated on Tue Nov 12 16:12:05 EST 2002########## > <IfModule !mod_jk.c> > LoadModule jk_module /usr/lib/apache/mod_jk.so > </IfModule> > JkWorkersFile "/install/jakarta-tomcat-4.1.12/conf/jk/workers.properties" > JkLogFile "/install/jakarta-tomcat-4.1.12/logs/mod_jk.log" > JkLogLevel emerg > > <VirtualHost localhost> > ServerName localhost > #################### localhost:/admin #################### > # Static files > Alias /admin "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin" > <Directory "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin"> > Options Indexes FollowSymLinks > DirectoryIndex index.html index.htm index.jsp > </Directory> > > # Deny direct access to WEB-INF and META-INF > # > <Location "/admin/WEB-INF/*"> > AllowOverride None > deny from all > </Location> > <Location "/admin/META-INF/*"> > AllowOverride None > deny from all > </Location> > JkMount /admin/j_security_check ajp13 > JkMount /admin/*.do ajp13 > JkMount /admin/*.jsp ajp13 > #################### localhost:/webdav #################### > # Static files > Alias /webdav "/install/jakarta-tomcat-4.1.12/webapps/webdav" > <Directory "/install/jakarta-tomcat-4.1.12/webapps/webdav"> > Options Indexes FollowSymLinks > DirectoryIndex index.jsp index.html index.htm > </Directory> > > # Deny direct access to WEB-INF and META-INF > # > <Location "/webdav/WEB-INF/*"> > AllowOverride None > deny from all > </Location> > <Location "/webdav/META-INF/*"> > AllowOverride None > deny from all > </Location> > JkMount /webdav/*.jsp ajp13 > #################### localhost:/examples #################### > # Static files > Alias /examples "/install/jakarta-tomcat-4.1.12/webapps/examples" > <Directory "/install/jakarta-tomcat-4.1.12/webapps/examples"> > Options Indexes FollowSymLinks > DirectoryIndex index.html index.htm index.jsp > </Directory> > > # Deny direct access to WEB-INF and META-INF > # > <Location "/examples/WEB-INF/*"> > AllowOverride None > deny from all > </Location> > <Location "/examples/META-INF/*"> > AllowOverride None > deny from all > </Location> > JkMount /examples/jsp/security/protected/j_security_check ajp13 > JkMount /examples/snoop ajp13 > JkMount /examples/servlet/* ajp13 > JkMount /examples/CompressionTest ajp13 > JkMount /examples/*.jsp ajp13 > JkMount /examples/servletToJsp ajp13 > JkMount /examples/SendMailServlet ajp13 > #################### localhost:/tomcat-docs #################### > # Static files > Alias /tomcat-docs "/install/jakarta-tomcat-4.1.12/webapps/tomcat-docs" > <Directory "/install/jakarta-tomcat-4.1.12/webapps/tomcat-docs"> > Options Indexes FollowSymLinks > DirectoryIndex index.html index.htm index.jsp > </Directory> > > # Deny direct access to WEB-INF and META-INF > # > <Location "/tomcat-docs/WEB-INF/*"> > AllowOverride None > deny from all > </Location> > <Location "/tomcat-docs/META-INF/*"> > AllowOverride None > deny from all > </Location> > JkMount /tomcat-docs/*.jsp ajp13 > #################### localhost:/manager #################### > # Static files > Alias /manager "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/manager" > <Directory "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/manager"> > Options Indexes FollowSymLinks > DirectoryIndex index.html index.htm index.jsp > </Directory> > > # Deny direct access to WEB-INF and META-INF > # > <Location "/manager/WEB-INF/*"> > AllowOverride None > deny from all > </Location> > <Location "/manager/META-INF/*"> > AllowOverride None > deny from all > </Location> > JkMount /manager/html/* ajp13 > JkMount /manager/* ajp13 > JkMount /manager/*.jsp ajp13 > </VirtualHost> [ ... ] Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
