Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Removing .htaccess un/pw prompts from certain sites

Posted on 2004-04-14
4
Medium Priority
?
271 Views
Last Modified: 2010-03-04
Having little and less knowledge of .htaccess structure and functionality, I have been assigned to disabled the password prompting for one particular site on our server.  However, A) the .htaccess file is written in Perl, and B) I am not familiar enough with the syntax and functionality to make an assessment of what do do.

(note: we're running Apache 2.0.4)

There is also a htpasswd/ folder with 2 password files inside of it, and a separate htpassword file.  Here is a link to the file: http://www.brillohead.net/htsample.txt.

What can be changed or removed to not have a certain site have password prompting anymore?
0
Comment
Question by:ChefDavid
[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
  • 2
4 Comments
 
LVL 3

Assisted Solution

by:shaggyb
shaggyb earned 400 total points
ID: 10829863
you need to go into your httpd.conf file

and under the website... remove the authconfig directive to completely remove login prompts

0
 
LVL 15

Accepted Solution

by:
samri earned 1600 total points
ID: 10831923
hi ChefDavid,

You may wish to browse to Apache FAQ (http://httpd.apache.org/docs/misc/FAQ.html).  There is a section that discuss about providing authentication for remote user, while allowing local user without any password.

The URL is : ttp://httpd.apache.org/docs/misc/FAQ.html#remote-auth-onlyDeny from all

Allow from .domain.com
AuthType Basic
AuthUserFile /usr/local/apache/conf/htpasswd.users
AuthName "special directory"
Require valid-user
Satisfy any

Briefly, you may need to adjust the "Allow from .domain.com" to match the domain/IP address that you wish to exclude from the authentication prompt.

Allow from .yourdomain.com <--- will cause user from yourdomain.com to pass (the IP need to have PTR record define)
Allow from 123.123 <---- people from 123.123.x.x network
Allow from 123 <-- pople from 123.x.x.x network.

hope this would help.
0
 
LVL 15

Expert Comment

by:samri
ID: 10831931
0
 

Author Comment

by:ChefDavid
ID: 10835436
I actually just removed the .htaccess file from the domain's root folder, and problem solved.  However, I have much to learn so your answers will provide me with further guidance.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

610 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