Hi Scott, an assumption to why it now works is that you have commented out the virtual host, so that the directives are now in the main section. The virtual host mechanism seems to depend on the clients (browsers) sending the host name (in your case "toecutter" or later "localhost") to the server, and if they don't do that, the directives never work for these requests. I don't understand why tomcat is generating this configuration, though.
greetings Andreas Mohrig -----Original Message----- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 6:52 AM To: Tomcat Users List Subject: Re: Can't get tomcat 4 + mod_jk + apache to work I don't know why, but I got it to work by adding the following at the end of httpd.conf - <IfModule !mod_jk.c> LoadModule jk_module /usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so </IfModule> JkWorkersFile "/usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties" JkLogFile "/usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log" JkLogLevel emerg #<VirtualHost localhost> #ServerName localhost #################### localhost:/examples #################### # Static files Alias /examples "/usr/local/tomcat/webapps/examples" <Directory "/usr/local/tomcat/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 ajp13 JkMount /examples/* ajp13 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 #################### toecutter:/sywareTech #################### Alias /sywareTech "/usr/local/jakarta-tomcat-4.0.4/webapps/sywareTech" <Directory "/usr/local/jakarta-tomcat-4.0.4/webapps/sywareTech"> Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp </Directory> # Deny direct access to WEB-INF and META-INF # <Location "/sywareTech/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/sywareTech/META-INF/*"> AllowOverride None deny from all </Location> JkMount /sywareTech/*.jsp ajp13 JkMount /sywareTech/servlet/* ajp13 #</VirtualHost> I couldn't get it to work by including mod_jk.conf, and I couldn't get the mod_jk src (from the Tomcat 4 dist. - no binaries avail.) to compile. Good luck. regards, Scott. ----- Original Message ----- From: "Brian Orledge" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, August 20, 2002 11:35 PM Subject: RE: Can't get tomcat 4 + mod_jk + apache to work > Did you get anywhere with this. I'm using the same configuration (minus > the JBoss) and having the same error. > > > Brian Orledge > Revenue Solutions, Inc. > 301.240.2182 > > -----Original Message----- > From: Scott Adamson [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 19, 2002 11:57 AM > To: Tomcat Users List > Subject: Can't get tomcat 4 + mod_jk + apache to work > > > I have been trying for the last week to get Apache + mod_jk + Tomcat 4 > to > work. > I have confirmed that Tomcat works on 8080, confirmed that Apache is > running. ..... > > Scott Adamson > Systems Administrator > Syware Technology > > [EMAIL PROTECTED] > http://upe.com.au > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
