I am simply trying to secure a folder and its contents with a username and password using .htaccess
In the folder 'secureFolder' I have placed .htaccess with the contents below:
//This is what gets prompted
AuthName "Restricted Area"
// I am not sure what this means.
AuthType Basic
// Server path to the .htpasswd file
AuthUserFile /home/httpd/vhosts/....../
secureFold
er/.htpass
wd
// I am not sure what this means.
AuthGroupFile /dev/null
// I am not sure what this means either
require valid-user
My .htpasswd contants secureUsername:encryptedPa
ssword
When I go to
http://www.mydomain.com/secureFolder I get prompted by "Restricted Area"
I type in my username and password and it takes me to a blank page, but I can read the page title and it also prompts me for " " this time. I try using the same username and password and it does not work.
The folder contains 2 swf files and an html file.
I am confused as to what I am doing wrong.
Any help would greatly be appreciated!
Start Free Trial