On Wed, Sep 30, 2009 at 6:02 PM, André Warnier <a...@ice-sa.com> wrote:
> François Gravel wrote: > > ... > Apart from the earlier message, I suggest you go back and undo the > following : > > I then went through the steps to use Tomcat to auto-configure. So I've >> added the line "Include $TOMCAT_HOME/conf/jk/mod_jk.conf-auto" to the >> file $HTTPD_HOME/conf/httpd.conf. >> > > Remove that. Done. > > > >> I also added the listener by way of the line "<Listener >> className="org.apache.jk.config.ApacheConfig" modJk="/path/to/mod_jk.so" >> />" >> in the file $TOMCAT_HOME/conf/server.xml. >> >> > Remove. > Done. > > Just make sure the server.xml contains an uncommented AJP Connector > for port 8009 (matching the "worker.worker1.port=8009"). > Like this : > > <Connector port="8009" enableLookups="false" redirectPort="8443" > protocol="AJP/1.3" /> > > and start Tomcat, then start Apache. > Line added hopefully at the appropriate place in the file. Both servers started. No errors when testing the configuration. > > What you are still missing then, probably, is to tell the mod_jk module > (now properly loaded in Apache) which request URLs it should "grab" and pass > on to Tomcat through port 8009. > That is done in httpd.conf by either directives like > > JkMount /my-tomcat-urls worker1 > JkMount /my-tomcat-urls/* worker1 > > (you need both) > > , or sections like > <Location /my-tomcat-urls> > SetHandler jakarta-servlet > ... > </Location> > > I prefer the second notation, because it fits better with the general > Apache configuration idea. But they are roughly equivalent and it's more a > matter of personal preference. Being a newbie, I'd rather go with the general Apache configuration idea, so as to develop the right instincts. Restarted Apache after adding the section. No errors. Off to testing Apache with a bit of code. Many, many thanks! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >