Solved

Problems authenticating

Posted on 1997-11-06
1
150 Views
Last Modified: 2013-12-25
I am having problems trying to get the authentication straightened out for my site.  I have created very basic .htaccess, .htpasswd files and used the password encryption tool (htpassword.cgi) that is provided by my ISP and am still can not get authentication.  After trying many iterations here is where I'm at:

.htaccess
AuthUserFile <full path>.htpasswd
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic

<Limit GET>
require user pumpkin
</Limit>

.htpasswd
pumpkin:VxJkdAsxlUERA

Is there anything wrong here?  If not, what questions might I ask my ISP to help resolve this issue?  It all seems very straight forward, but I have not been able to get it to work.

snicol
0
Comment
Question by:snicol
1 Comment
 

Accepted Solution

by:
sshy earned 10 total points
ID: 1855448
* First of all make sure that the .htpasswd file is accessible
  for the server (but do not put it to the places where
  users can download it).

* Then make sure that the .htaccess is the right AccessFileName
  used in your server configuration (ask ISP).

After that special option should be set in the server
configuration which allows to consider .htaccess files in
certain directories.

"When the server finds an .htaccess file (as specified by AccessFileName) it needs to know which directives declared in that file can override earlier access information."

In your case the directive is AuthConfig.

* So you should have enabled AuthConfig override for
  that directory where you put your .htaccess file (ask ISP)

For Apache server it looks like this:

<Directory /path/some_directory>
AllowOverride AuthConfig
</Directory>

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to count occurrences of each item in an array.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now