Java Mailing List Archive

http://www.junlu.com/

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

protecting servlets with apache basic authentication

Mark McWilliams

2003-06-03


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@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


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