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>

Reply via email to