Forum Moderators: phranque

Message Too Old, No Replies

htaccess-htpasswd error

unable to login

         

gidep

10:55 pm on Jul 3, 2011 (gmt 0)

10+ Year Member



Hi all
I have setup a webpage with two language folders e.g.; httpdocs(chosse language)/ ENG/index.html. Here is the htaccess file:
AuthName "Restricted Area" 
AuthType Basic
AuthUserFile www.the site.com/ENG/.htpasswd
AuthGroupFile /dev/null
require valid-user

The htpasswd file
Restricted Area:my password


Below the error log on the server
No such file or directory: Could not open password file: /etc/apache2/www.the site.com/ENG/.htpasswd, referer: [the...] site.com/

Please would someone be able to help?
I have tried all sorts with different folder and different permissions with no joy.I do get from time to time the login window though when it shows the page I want (which is in the adress bar)though then I get the following error in the webbrowser.
Internal Server Error
The server encountered an internal error or misconfiguration...

I'm not sure if the above htaccess code is complet(what is above is all I got in there)

Thanks

gidep

10:12 am on Jul 5, 2011 (gmt 0)

10+ Year Member



Back again
To bad no one had time to reply.
I had a struggle with the above and spend long hours till I found this [htaccesstools.com ] website. From there all worked. The "path finder" got me going.