Solved

Problems authenticating

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

734 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