I assume you are talking about a virtual web directory?

I just did this using JNDI and OpenLDAP using the <Realm> tag 
inside the server.xml file.  But you can also do this using a 
JDBC Realm or the simple way (similar to the .htaccess) file, 
by using an in-process Memory realm.  Read the docs on the 
links below, as they give examples on all 3 methods.

This is the file you want to edit for using the MemoryRealm:
$CATALINA_HOME/conf/tomcat-users.xml

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-
howto.html


Regards,

Jeremy


---- Original message ----
>Date: Thu, 11 Apr 2002 20:16:54 -0400 (Eastern Daylight Time)
>From: David Gladstone <[EMAIL PROTECTED]>  
>Subject: password protection  
>To: <[EMAIL PROTECTED]>
>
>i am trying to figure out how to password protect a 
directory. i am
>realativly new to tomcat. i know it its very easy to do in 
apache with an
>.htaccess file. but how do i go about doing it in tomcat ?
>
>-dave
>
>
>--
>To unsubscribe:   <mailto:tomcat-user-
[EMAIL PROTECTED]>
>For additional commands: <mailto:tomcat-user-
[EMAIL PROTECTED]>
>Troubles with the list: <mailto:tomcat-user-
[EMAIL PROTECTED]>
>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to