Forum Moderators: phranque

Message Too Old, No Replies

securing a directory with basic security

         

mikejson

6:16 pm on Oct 1, 2004 (gmt 0)

10+ Year Member



I've set my security file from .htaccess to access.dat

in my access.dat file I have
<Directory / >
AuthType Basic
AuthName "Restricted SWG Site"
AuthUserFile "C:/Program Files/Apache Group/Apache2/passfile.txt"
Require valid-user
</Directory>

the passfile.txt was created using the htpasswd utility in the bin directory.

I've also configured apache to AllowOverride AuthConfig

on both the <Directory /> and <Directory "server web pages path">

and I'm getting Internal Server error(500).

Any help would be appreciated :)

mikejson

3:06 pm on Oct 4, 2004 (gmt 0)

10+ Year Member



I guess I should add the following info:

apache2
php5
Windows xp SP2

tried fiddling with a few things and I can't get it to work

jdMorgan

12:10 am on Oct 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> I'm getting Internal Server error(500).

Please post the contents of your server error log pertaining to this error. This might help us help you.

Jim