Solved

Removing .htaccess un/pw prompts from certain sites

Posted on 2004-04-14
4
259 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Forward apache log to Syslog-NG 7 81
Running Guacamole on port 80 5 207
Problem with .htaccess file 4 69
Apache/PHP: Cannot make phpinfo() and phpmyadmin work 4 49
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…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

806 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