tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Williamson" <ja...@nameonthe.net>
Subject Re: Apache, Tomcat, mod_webapp and Static files
Date Fri, 09 Nov 2001 20:42:40 GMT
Hi Paul,

You can actually do this in Apache, webapp sets itself up as the default
handler for all files under the context you've set it to (I wrote about this
a while back). To have static files (i.e. .html) processed by Apache you can
override mod_webapp by doing something like this:

AddHandler default-handler .gif .jpeg .html

This does however depend on your Apache configuration (i.e. which order
handlers are called), but normally you should be OK.

Regards,

James

----- Original Message -----
From: Paul Devisser <paul@stonylakesolutions.com>
To: Tomcat Users List <tomcat-user@jakarta.apache.org>
Sent: Friday, November 09, 2001 8:06 PM
Subject: Re: Apache, Tomcat, mod_webapp and Static files


> We experienced a similar problem.  Our solution was to place the static
> pages in the document root .../www/html while having the webapp utilize
> something like /webapp/
>
> Using paths such as /images to serve up graphics and such, Apache serves
the
> static, while only passing anything with a /webapp/ url to Tomcat.  Not
the
> prettiest of solutions, but it seemed the simpliest.
>
> Paul Devisser
>
> ----- Original Message -----
> From: "Bob Byron" <bbyron@radit.com>
> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> Sent: Friday, November 09, 2001 2:54 PM
> Subject: Re: Apache, Tomcat, mod_webapp and Static files
>
>
> > I still would like to know how to have Apache handle the static
> > files while Tomcat handles the dynamic ones.
> >
> > Bob
> > ----- Original Message -----
> > From: "Bob Byron" <javamug@radit.com>
> > To: <tomcat-user@jakarta.apache.org>
> > Sent: Thursday, November 08, 2001 5:47 PM
> > Subject: Apache, Tomcat, mod_webapp and Static files
> >
> >
> > > I have Apache configured to delivier a number
> > > of websites using the VirtualHost.  I have since
> > > added a webapp to one site using the
> > > WebAppDeploy directive.  Problem is that
> > > all files are now delivered from Tomcat.  Is
> > > there a gude somewhere on how to have
> > > Apache deliver the static files and have Tomcat
> > > deliver the jsp's?
> > >
> > > Thanks,
> > > Bob Byron
> > >
> > >
> > > --
> > > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message