It seems the problem was that the auto-generated mod_jk.conf file was placing the JkMount directives inside a VirtualHost tag for "localhost". Since I'm not interested in having any name-based virtual hosting, I removed the enclosing VirtualHost tags and renamed the file mod_jk.conf.manual so it would not be overwritten (and updated the httpd.conf file to point to it).
Jason > > Hello, > > I have tomcat 5.5.7, mod_jk 1.2.8 and Apache 2.0.53 installed on Debian > linux machine (machine A). > > When accessing a webapp through apache using a browser on the same machine > as the server (machine A) I have no problems. When accessing the same URL > from another machine on the same network (machine B) I get a 404 > error from > Apache. No other errors are given in the mod_jk.log, catalina.out or > error.log. > > My workers.properties file is very simple: > > worker.list=ajp13 > worker.ajp13.port=8009 > worker.ajp13.host=localhost > worker.ajp13.type=ajp13 > > I added this line to my server.xml file (right under the Engine tag): > > <Listener className="org.apache.jk.config.ApacheConfig" > modJk="/usr/local/apache2/modules/mod_jk.so" /> > > The $TOMCAT/conf/auto/mod_jk.conf file gets created just fine when tomcat > starts up. > > I added the Include directive in my httpd.conf file to pick up the > mod_jk.conf file. > > So, in short, hitting the url http://localhost/jsp-examples/ > works just fine > using a browser on the same machine as the web server. But > hitting the same > url (http://machineA/jsp-examples/) from a different machine results in a > 404 error from Apache. Hitting tomcat directly > (http://machineA:8080/jsp-examples/) works just fine as well. > > This makes me think something is wrong with my mod_jk > configuration, but why > then does the local browser work? There is no firewall running on the > server. > > Thank you for your time. > > Jason > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
