tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Really block a directory
Date Wed, 11 Jan 2012 13:04:24 GMT
On 11/01/2012 13:00, Luciano Andress Martini wrote:
> I need to block a directory in Tomcat, with all the files and
> sub-dirs,  i cant change the path of this directory. =[
> Like we do in Apache2, and without changing files permission.
> 
> Its possible?

Yes.

Write a Servlet. Hard code it to return 404 and map it to the path that
equates to the directory.

Mark

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


Mime
View raw message