Hi Guys
Can anyone help me with please?
Have setup httpd.conf with the settings everyone recommends on here.
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
<Directory "c:/server/apache/htdocs/protected">
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
#
# AccessFileName: The name of the file to look for in each directory
# for access control information.
#
AccessFileName .htaccess
# Also, folks tend to use names such as .htpasswd for password
# files, so this will protect those as well.
#
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
The .htaccess file is in the directory I want to password protect.
My .htaccess file looks like this....
AuthUserFile "C:/server/apache/passwd/.htpasswd"
AuthGroupFile /null
AuthName "Restricted Area"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
I've used htpasswd.exe to create the .htpasswd file that is stored in c:/server/apache/passwd/ using the settings below
htpasswd.exe -cmb .htpasswd admin password, this creates the file with no problems.
The problem is that when I direct the browser to the password protected directory I get the password prompt, but it will not authorise the password at all.
Where am I going wrong???
Can anyone help me with please?
Have setup httpd.conf with the settings everyone recommends on here.
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
<Directory "c:/server/apache/htdocs/protected">
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
#
# AccessFileName: The name of the file to look for in each directory
# for access control information.
#
AccessFileName .htaccess
# Also, folks tend to use names such as .htpasswd for password
# files, so this will protect those as well.
#
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
The .htaccess file is in the directory I want to password protect.
My .htaccess file looks like this....
AuthUserFile "C:/server/apache/passwd/.htpasswd"
AuthGroupFile /null
AuthName "Restricted Area"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
I've used htpasswd.exe to create the .htpasswd file that is stored in c:/server/apache/passwd/ using the settings below
htpasswd.exe -cmb .htpasswd admin password, this creates the file with no problems.
The problem is that when I direct the browser to the password protected directory I get the password prompt, but it will not authorise the password at all.
Where am I going wrong???