Java Tutorial - Java Script :
Step 4: Edit the Tomcat Configuration File
Now, you need to tell Tomcat to dynamically generate a configuration file for Apache that reflects the applications installed in Tomcat. Tomcat needs to start before Apache does to ensure that this file is created and up to date for Apache when Apache starts. Edit the file $CATALINA_HOME/conf/server.xml and look for a line that reads:
<Server port=”8005” shutdown=”SHUTDOWN” debug=”0”>
Immediately after this line define a server listener by adding:
<Listener className=”org.apache.ajp.tomcat4.config.ApacheConfig” />
Next, look for:
<Host name=”localhost” debug=”0” appbase=”webapps” >
and add:
<Listener
className=”org.apache.ajp.tomcat4.config.ApacheConfig”
append=”true”/>
