[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Problems authenticating

Posted on 1997-11-06
1
Medium Priority
?
163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
sshy earned 40 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

649 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