Advertisement

05.27.2008 at 02:00PM PDT, ID: 23436345
[x]
Attachment Details

.htaccess is requiring two logins

Asked by CompuTurk in Apache Web Server, Linux Network Security, Unix Network Security

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!Start Free Trial
[+][-]05.27.2008 at 02:18PM PDT, ID: 21655812

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.28.2008 at 02:02AM PDT, ID: 21658751

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.28.2008 at 10:17AM PDT, ID: 21662311

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.28.2008 at 04:05PM PDT, ID: 21665030

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.28.2008 at 11:45PM PDT, ID: 21666806

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apache Web Server, Linux Network Security, Unix Network Security
Sign Up Now!
Solution Provided By: Blaz
Participating Experts: 3
Solution Grade: A
 
 
[+][-]06.02.2008 at 10:45PM PDT, ID: 21697823

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628