Jon,
You need to run apache in conjunction with tomcat using the mod_jk.dll/so.
Your static web pages will of course get whatever files you jsp tells them
to point to. You need to set up a context that maps your web page path to
the appropriate jsp. Your web server will be running on port 80. Tomcat will
run on port 8080 and listen at port 8007 to pick up the redirects to the
jsp.
Dan
-----Original Message-----
From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 4:13 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Apa/TomC] Context switching in servers ???
How can I have a directory that serves JSP pages though Apache/Tomcat,
static .html files though apache, and imaged though apache. I don't want
EVERYTHING going though tomcat. Here is the directory structure ...
Any thoughts ???? Here is some imfo ....
http://myapp.localhost (same as http://localhost/myapp)
|
|- index.jsp (served by apache/tomcat.. this is working)
|- static.html (when requested served by apache only .. need to get
working)
|
+- images (sub-directory)
|
|- logo.gif (served by apache only .. need to get working)
# Blurb from tomcat.conf which gets included into httpd.conf
#
############################## Context mapping - all requests go to tomcat
ApJServMount /examples /root
# ApJServMount /myapp /root
<VirtualHost myapp.localhost>
ServerAdmin webmaster@localhost
DocumentRoot "C:/Program Files/Apache
Group/jakarta/tomcat/webapps/myapp"
ServerName myapp.localhost
ApJServMount / /root
ErrorLog logs/myapp.localhost-error_log
CustomLog logs/myapp.localhost-access_log common
</VirtualHost>
<!-- Blurb from server.xml to define a named host -->
<Host name="myapp.localhost" >
<Context path=""
docBase="webapps/myapp"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
</Host>