tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Smith <z_spo...@yahoo.com>
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
right.
I have a directory structure like this (everything
over SSL):
.../webapps/theWebApp/
.../webapps/theWebApp/certs

and in the .../webapps/theWebApp/ directory I have a
file called main.html that has a link to
https://<servername>/theWebApp/certs/CACert.cer 
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!
-Alex

--- "Shapira, Yoav" <Yoav.Shapira@mpi.com> 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.
http://antispam.yahoo.com/tools

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message