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
Solved

Problems authenticating

Posted on 1997-11-06
1
153 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

792 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