You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark McWilliams <mm...@segundo.net> on 2003/06/04 03:17:06 UTC

protecting servlets with apache basic authentication

What should I put in the httpd.conf to make apache
do authentication before a servlet is accessed?
Here's what I tried:

<Directory "C:/Program Files/Apache Group/Apache2/Tomcat 4.1/webapps/stuff">
AuthType Basic
AuthName "stuff"
AuthUserFile "C:/Program Files/Apache Group/Apache2/conf/passwd"
require valid-user
</Directory>

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