tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Smith <>
Subject RE: Serving static content in tomcat 5
Date Thu, 26 Feb 2004 20:41:34 GMT
OK that makes sense and I've tested it and you're
I have a directory structure like this (everything
over SSL):

and in the .../webapps/theWebApp/ directory I have a
file called main.html that has a link to
and when I click it it will not allow me to save it or
access it at all.  However, if I put a test file in
the /certs directory called hi.html, I can access that
via https://<servername>/theWebApp/certs/hi.html

I have checked my <tomcatHome>/conf/web.xml and there
is a mime mapping for .cer files.   What gives?

Thanks a lot for the help!

--- "Shapira, Yoav" <> wrote:
> Howdy,
> >  I tried adding a <Context> to the
> ><webappBase>\WEB-INF\web.xml file:
> A context IS a web application: it's a one to one
> relationship.
> >But it doesn't seem to work.  Can someone please
> point
> >me in the right direction to serve static content /
> >files?
> You don't need to configure tomcat to serve static
> content, it does so
> automatically.  You just need to place the static
> content in your
> webapp.
> Yoav Shapira

Do you Yahoo!?
Get better spam protection with Yahoo! Mail.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message