Forum Moderators: phranque
I'm running Apache 2 on a WinXP Pro server. I'm trying to password protect a directory; have read all the tutorials on it, and it seems easy enough to do....but it's not working -- I'm greeted with the dreaded 'Internal Server Error'.
httpd.conf settings:
AllowOverride All
.htaccess file:
AuthUserFile c:/clients/queststudios/public_html/private/.htpasswd
AuthName Private Directory
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
I then run the htpasswd utility, generate a login and password, and it's created and placed correctly in this 'private' directory along with the htaccess file. But notta....just an Internal Server Error when trying to access the directory.
I'm wondering if the path should be based on the hosts' DirectoryRoot, which is: c:/clients/queststudios/public_html. Should my htaccess file simply use /private/.htpasswd for the path to the 'private directory'?
Thanks...
if the realm name contains spaces, it must be enclosed in quotation marks
Resource:
[httpd.apache.org...]
Many thanks for this thread, Tom. I was still confused until I read it.