Solved

Problems authenticating

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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.

690 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