Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: How to password protect a directory?

David Delbecq

2006-12-05

Replies:

Mikolaj Rydzewski a ?crit :
> Hi,
>
> I have several directories mapped to my Tomcat instance with
> context.xml like this:
>
> <?xml version="1.0" encoding="ISO-8859-2"?>
> <Context
>     cookies="false"
>     docBase="/home/stats/some_dir"
>     path="/stats"
> />
>
> There're only html files there. No JSP, servlets, and of course no
> WEB-INF. How can I password protect those directories (or webapps)? Do
> I have to create appropriate WEB-INF/web.xml and security constraints?
> Or is there any simpler solution?
>
Only static resources? Yes, there is a simpler solution, don't use
tomcat, use an apache web server and a .htaccess file.

If you really need tomcat, yes, a web.xml is highly recommanded then.

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.