Note that the instructions for Tomcat 4 will be different than those for Tomcat 3, but the Tomcat 4.0 web connector is still under development. Versions of Tomcat prior to 3.2.1 are not recommend for use with Struts.
/usr/local/apache/conf
.
tomcat-apache.conf
file that you have saved, replacing $TOMCAT_HOME with
the path to your Tomcat
home directory:
Alias /struts-documentation "$TOMCAT_HOME/webapps/struts-documentation <Directory "$TOMCAT_HOME/webapps/struts-documentation> Options Indexes FollowSymLinks </Directory> ApJServMount /struts-documentation/servlet /struts-documentation <Location "/struts-documentation/WEB-INF/"> AllowOverride None deny from all </Location> Alias /struts-example "$TOMCAT_HOME/webapps/struts-example" <Directory "$TOMCAT_HOME/webapps/struts-example> Options Indexes FollowSymLinks </Directory> ApJServMount /struts-example/servlet /struts-example <Location "/struts-example/WEB-INF/"> AllowOverride None deny from all </Location>
AddHandler jserv-servlet .do
Include
/usr/local/apache/conf/tomcat-apache.conf
DirectoryIndex index.html index.jsp
DirectoryIndex index.jsp
http://localhost/struts-documentation
http://localhost/struts-example