tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David M. Holmes" <david_m_hol...@yahoo.com>
Subject Re: Passwod Protecting a directory
Date Sun, 17 Dec 2000 01:47:26 GMT
use security constaints in your deployment descriptor with a SimpleRealm or JDBCRealm:

<security-constraint>
<web-resource-collection>
<web-resource-name>Some Realm</web-resource-name> 
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Admin</role-name> 
</auth-constraint>
</security-constraint>

<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Some Realm</realm-name>
</login-config>

--- Tim Kang <timkang@stratfordinternet.com> wrote:
> I was wondering if anybody knows how to password protect a directory in
> Tomcat environment
> 
> Please let me know
> 
> Thanks
> 
> Tim
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Mime
View raw message