Create a Java web application in the 'normal' fashion.  See
http://localhost/tomcat-docs/appdev/index.html for how to set things up.

This will create your entire web application in $CATALINA_HOME/webapps.

Now, in your Apache httpd.conf file, you need some configuration
additions.  Let's say your application is called beg-jsp (for beginning
JSP).

<Directory "/home/tomcat/tomcat-5.0/webapps/beg-jsp">
   Options Indexes MultiViews
   AllowOverride None
   Order allow,deny
   Allow from 127.0.0.1
   Allow from 192.168.1
</Directory>

Replace /home/tomcat/tomcat-5.0/webapps/beg-jsp with the directory where
your application is located.  Adjust the Allow from statements as
desired.

Also add an alias directive in your httpd.conf.

Alias /beg-jsp/    "/home/tomcat/tomcat-5.0/webapps/beg-jsp/"

Again, replace /home/tomcat/tomcat-5.0/webapps/beg-jsp with YOUR
directory.

Now, in workers2.properties, add the following lines to pass all jsp
requests to Tomcat.

[uri:lvh.mdeggers.org/beg-jsp/*.jsp]
worker=ajp13:localhost:8009

Replace lvh.mdeggers.org with your hostname.  The worker I'm using is
the default worker.  Change that if you've defined it differently than
the default.

Now Apache will serve all content except for files ending with jsp.
That will get sent to Tomcat to serve.

HTH


-----
/mde/
just my two cents . . . .


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to