December 15, 2003

A short tutorial on password protection

You'll need shell access. Type 'which htpasswd' to which something along the lines of '/bin/htpasswd' or '/usr/bin/htpasswd' will be returned. Make note of path, use it in path before the -c switch in the next input sequence. Type:

'/bin/htpasswd -c /path/to/radiofreeblogistan/edit/.htpasswd radiofreeblogistan'

Enter password twice upon prompt. Open text editor, type:

AuthUserFile /path/to/radiofreeblogistan/edit/.htpasswd
AuthName Radio Free Blogistan
AuthType Basic
<Limit GET>
require user radiofreeblogistan
</Limit> 
Posted by filchyboy at December 15, 2003 10:22 PM

Thanks. I followed those steps. I think the problem is a missing AllowOverride All declaration in my httpd.conf - without it, the server is ignoring my .htaccess file. I'll look into that ASAP.

Posted by: xian at December 16, 2003 10:55 AM
Other incoming links (via Technorati)

Hosted by Mediajunkie.

Sponsors
On this day in 2002
Hey, remember yesterday when I: Hey, remember yesterday when I told you that the brand new was on-line? That was kinda true. I mean it was on-line. It just wasn't complete.Now it is, so go visit. No, really, now. I don't have all day.... (Salon Bloggers)