Solved

Removing .htaccess un/pw prompts from certain sites

Posted on 2004-04-14
4
258 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
  • 2
4 Comments
 
LVL 3

Assisted Solution

by:shaggyb
shaggyb earned 100 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 400 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now