.htpasswd under IIS - does it work?

Posted by Cyrcle on Stack Overflow See other posts from Stack Overflow or by Cyrcle
Published on 2010-03-23T15:37:04Z Indexed on 2010/03/23 15:43 UTC
Read the original article Hit count: 493

Filed under:
|

I'm trying to password protect a directory on a server that's running IIS.

I've put the following in the .htaccess file in that directory - AuthName "Restricted Area" AuthType Basic AuthUserFile /path/.htpasswd AuthGroupFile /dev/null require valid-user

I've tried a whole bunch of different paths and although it's asking for a username and password it won't take it. I've tried using the path provided by _SERVER["PATH_TRANSLATED"] but that's no help either.

Is this a problem with my path, or does IIS just not support .htpasswd?

© Stack Overflow or respective owner

Related posts about iis

Related posts about .htaccess