troubleshooting Question

.htaccess is requiring two logins

Avatar of CompuTurk
CompuTurk asked on
Apache Web ServerLinux SecurityOS Security
7 Comments1 Solution329 ViewsLast Modified:
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/....../secureFolder/.htpasswd

// 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:encryptedPassword

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!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros