Password protected folder help
I have been trying to password protect a folder using .htaccess and .htpasswd file
.htaccess file as follows.
Everytime I try and access the folder however i get an error 500. I have edited the vhost file for the domain and set AllowOverride All. But this still happens.
If you get an error in the browser, take a look in the error log of the website to find the reason for it.
In the first line of your .htaccess file is a typo, it must be:
AuthName "Admin Area"
and do not edit the vhost file manually as all manual edits will get removed automatically.
Spelling mistake isnt in the proper .htaccess file and was due to bad copypasta :)
The rror logs show:
[Wed Feb 17 11:36:07 2010] [alert] [client 126.96.36.199] /var/www/####.co.uk/web/test/.htaccess: AuthName takes one argument, The authentication realm (e.g. "Members Only")
Ok, then the error was what I posted above. Please change the line as I told you incl. the correct quotes.
Doh I hadnt twigged on that the " had been changed to .
Feel like a complete idiot now :)
Thanks for the help till
|All times are GMT +2. The time now is 02:35.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.