View Full Version : .htaccess & .htpasswd

05-20-2003, 10:33 AM

I am trying to password protect part of my website. I have read (& understood) various articles on creating .htaccess & .htpasswd files, however it does not seem to be working.

File contents as follows:
.htaccess file
AuthUserFile C:\Inetpub\wwwroot\azl\.htpasswd
AuthGroupFile /dev/null
AuthName TestingAdministratorPassword
AuthType Basic

require user Administrator

.htpasswd file

(I have amended the real password here for security)

The AuthGroupFile value in the .htaccess file is /dev/null however this is a Unix value and I am running Windows - could this be the problem, or is there something else I am missing?

Kind regards,

05-22-2003, 06:17 AM
You're right, /dev/null is the problem. Unfortunately, I don't remember what the answer is, though for some reason, I remember just typing null.

05-25-2003, 12:10 AM
Am i correct in saying that you are using IIS (just looking at your webroot) ?
Isnt htaccess an Apache thing ??
If So on both you have the wrong Web Server for trying to use htaccess.
Id recommend either installing apache rather than IIS or go with the IIS security (or lack of it).

Just my 2c worth

05-27-2003, 12:23 AM
Isnt htaccess an Apache thing ??

It's unix machines only, I do believe windows machines have a file that works similar, but I don't work with windows so I've never looked it up, or cared to :p

05-27-2003, 11:07 PM
Im sorry and beg to differ, .htaccess IS an apache thing and yes you can setup something similar on a win box.
As for you using apache on windows with htaccess thats no problem because as i have said its an Apache thing.

05-27-2003, 11:11 PM
here's a good link to setup htaccess on win2k