Welcome to WebmasterWorld Guest from 188.8.131.52
I just have a small issue with my .htaccess and .htpasswd
I am just testing this so i made a test directory on my webserver and put the .htaccess and .htpasswd files in it.
I have entered that user auth is recuired. In .htpasswd i have entered that the username and pass are test.
But everytime i enter this it just prompts me for another login screen, like username/pass are wrong. But i aint so stupid to type test wrong? ;)
AllowOverride is set to all in my httpd.conf.
Anyone has a clue what is wrong?
I am using a windows 2000 server.
Welcome to WebmasterWorld [webmasterworld.com]!
The contents of the .htpasswd file must be encrypted using a tool installed with your server. I'm not sure how this is supported on Win 2000, but generally, you have to have command-line access, type in the name of the account manager/password-creation utility, and then enter the username and password. The output is merged with the current contents of .htpasswd, enabling that 'account'.
To be more secure you should also place the .htpasswd file (if possible) outside of the www-accessible tree. ie. if your website is at /home/yourname/public_html/* then the file should go at /home/yourname/.htpasswd
I host a few sites for people and i allow them to use htaccess.
But the tricky part is. If they want to be able to use it they have to put:
D:/Apache/Apache2/htdocs/directory name/place of htpasswd/.htpasswd
Cant this be done differently?
Now they have to input D:/Apache/Apache2/htdocs.