Apache, htaccess, and htpasswd questions

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
Here's my .htaccess in the root directory of my little test webserver at home. I've got shell access set up so I can edit the files remotely:

AuthUserFile /var/www/html/testfolder/.htpasswd
AuthGroupFile /dev/null
AuthName "Test Encryption"
AuthType Basic

require user testuser

Here's the .htpasswd file I have in the testfolder:

testuser:tESqKKJFHxWNg

I tried putting the .htaccess file in the testfolder as well, but it still isn't asking for user/pass. What am I doing wrong?
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
You definitely don't need to restart Apache for that.. but I think you need to enable AllowOverride All (and possibly something else that I can't recall) in <Directory "<your public dir>" in htdocs.
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
I'm having a hell of a time finding in-dept how-to's on this that fully explain it other than simple web tutorials that just say "create these two files and you're done" kinda crap.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
I'm having a hell of a time finding in-dept how-to's on this that fully explain it other than simple web tutorials that just say "create these two files and you're done" kinda crap.
Yeah, a lot of docs suck. As others have said, you'll need to make sure you AllowOverride all in your httpd.conf.