Hi,
I'm using Win2k and Apache 1.3.20. I'd like to password protect one of my directories. I changed the access file name tag to
AccessFileName ht.access
in httpd.conf 'cause its easier to handle on win32 systems. Also I changed the 'view' protection:
<Files ~ "^\ht.">
Order allow,deny
Deny from all
</Files>
My ht.access file located in the directory I'd like to protect looks like this:
AuthName MyPlace
AuthType Basic
AuthUserFile D:\require valid-user
I also tried slashes instead of backslashes and relative paths in AuthUserFile. The ht.passwd file located in the same directory has following syntax:
guest:1u8bSeSPld2F6
I additionally have virtual hosts. In this case the directories ARE in a virtual host. The virtual host tag looks like this:
<VirtualHost 192.168.0.220>
ServerAdmin webmaster@server1.home
DocumentRoot D:\</VirtualHost>
The Document root for the server is set to D:\www. I tried slashes instead of backslashes mostly everywhere. Works with both. But my authorization won't work! Directory is accessable for everyone. And don't tell me to 'restart the service' under Win32. I did this 234965298356239847523984 times ;-))
Thx for your help
I'm using Win2k and Apache 1.3.20. I'd like to password protect one of my directories. I changed the access file name tag to
AccessFileName ht.access
in httpd.conf 'cause its easier to handle on win32 systems. Also I changed the 'view' protection:
<Files ~ "^\ht.">
Order allow,deny
Deny from all
</Files>
My ht.access file located in the directory I'd like to protect looks like this:
AuthName MyPlace
AuthType Basic
AuthUserFile D:\require valid-user
I also tried slashes instead of backslashes and relative paths in AuthUserFile. The ht.passwd file located in the same directory has following syntax:
guest:1u8bSeSPld2F6
I additionally have virtual hosts. In this case the directories ARE in a virtual host. The virtual host tag looks like this:
<VirtualHost 192.168.0.220>
ServerAdmin webmaster@server1.home
DocumentRoot D:\</VirtualHost>
The Document root for the server is set to D:\www. I tried slashes instead of backslashes mostly everywhere. Works with both. But my authorization won't work! Directory is accessable for everyone. And don't tell me to 'restart the service' under Win32. I did this 234965298356239847523984 times ;-))
Thx for your help