All you need to do is stick something like this in httpd.conf...
<Location />
AuthType Digest
AuthName "Secure Stuff"
AuthDigestDomain /
AuthDigestProvider file
AuthUserFile /var/www/auth/.digest_pw
Require valid-user
</Location>
and then type ...
htdigest -c /var/www/auth/.digest_pw 'Secure Stuff' admin
- in the above, admin of course is the user.
- Where I've typed "Secure Stuff" needs to equal each other
- the -c option with htdigest will create a new file and overwrite any other users you have created
- With AuthDigestDomain, you can specify multiple locations covered by the same auth.
- everything underneath is covered automatically
- You can include relative URI's or absolute URI (inc domain)
- apache gives the example, AuthDigestDomain URI [URI] ... or AuthDigestDomain /private/ http://mirror.my.dom/private2/
Comments
Post a Comment