DenKain
10-18-06, 03:19 PM
To start, I searched the forum for .htaccess and after reading the first ten pages I have decided to just ask my question.
I have a linux server, I have no idea what kind since I'm renting from Go Daddy. I have a directory (/securefiles) and within this directory is a .htaccess file, a .htpasswd file and an index.html. When I try to go to /securefiles it askes me to login like it is suppose to. I enter my username and password and it prompts me again as to say "I'm sorry but your wrong". Now from what I have been told it is best to place the .htpasswd file "above" the root directory but since this is a small site used by maybe just hundred people I though it would be better to just put it in the directory. The thing is no matter what I put for the username and passowrd it seems to be wrong even if the password is in plaintext. I was using this (http://www.tools.dynamicdrive.com/password/) website to help me with the encrypting portion but it is not helping. So I'm not really sure what I am doing wrong.
Here is my .htaccess:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /securefiles/.htpasswd
AuthGroupFile /dev/null
require valid-user
Here is my .htpasswd:
snowwolf:qg39dEQNYpbGI
Here is my .htpasswd with plaintext password:
snowwolf:password
I have a linux server, I have no idea what kind since I'm renting from Go Daddy. I have a directory (/securefiles) and within this directory is a .htaccess file, a .htpasswd file and an index.html. When I try to go to /securefiles it askes me to login like it is suppose to. I enter my username and password and it prompts me again as to say "I'm sorry but your wrong". Now from what I have been told it is best to place the .htpasswd file "above" the root directory but since this is a small site used by maybe just hundred people I though it would be better to just put it in the directory. The thing is no matter what I put for the username and passowrd it seems to be wrong even if the password is in plaintext. I was using this (http://www.tools.dynamicdrive.com/password/) website to help me with the encrypting portion but it is not helping. So I'm not really sure what I am doing wrong.
Here is my .htaccess:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /securefiles/.htpasswd
AuthGroupFile /dev/null
require valid-user
Here is my .htpasswd:
snowwolf:qg39dEQNYpbGI
Here is my .htpasswd with plaintext password:
snowwolf:password