Hi, I have a problem with an .htaccess which I can't get to work. I have tried everything but it is driving me nuts. I'm sure it must be a minor thing but it has taken me hours and hours, and I still can't get it to work.
The problem is that the no username/password box is coming up when I browse a file in the protected directory.
The details:
RedHat 8.0, Apache 2.0.40
The dir is /var/
.htaccess:
AuthUserFile /home/tm/.htpasswd
AuthName "Password required"
AuthType Basic
The .htpasswd file has the correct attributes (+r), dir /home/tm also (+x)
httpd.conf:
...
<Directory "/var/ AllowOverride All
Order allow,deny
Allow from all
</Directory>
...
IE version 6.0, security options:
User Authentication = Prompt for user name and password
The result stays the same when I change it to other options.
All files can be accessed in the 'protected' dir.
The .htaccess file is being read, when I put garbage in it, I get an error message in IE and the logfile.
I have changed .htaccess to the following:
AuthUserFile /home/tm/.htpasswd
AuthName "Password required"
AuthType Basic
<Limit GET POST>
Require user admin
</Limit>
The result is that I cannot access any file in the dir, I get an error message in IE:
Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
But no password box is shown in IE!
Help, I'm lost!
The problem is that the no username/password box is coming up when I browse a file in the protected directory.
The details:
RedHat 8.0, Apache 2.0.40
The dir is /var/
.htaccess:
AuthUserFile /home/tm/.htpasswd
AuthName "Password required"
AuthType Basic
The .htpasswd file has the correct attributes (+r), dir /home/tm also (+x)
httpd.conf:
...
<Directory "/var/ AllowOverride All
Order allow,deny
Allow from all
</Directory>
...
IE version 6.0, security options:
User Authentication = Prompt for user name and password
The result stays the same when I change it to other options.
All files can be accessed in the 'protected' dir.
The .htaccess file is being read, when I put garbage in it, I get an error message in IE and the logfile.
I have changed .htaccess to the following:
AuthUserFile /home/tm/.htpasswd
AuthName "Password required"
AuthType Basic
<Limit GET POST>
Require user admin
</Limit>
The result is that I cannot access any file in the dir, I get an error message in IE:
Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
But no password box is shown in IE!
Help, I'm lost!