Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache help

Status
Not open for further replies.

hereigns

MIS
Joined
Sep 17, 2002
Messages
172
Location
US
Running RH 7.2 kernel 2.4.7-10 with apache 1.3.20

I'm wanting to restrict access to Intranet site from Internet. I've added the following commands to the httpd.conf file, which works too well as it prompts for authorization even from internal hosts. Any ideas on how I can get the file to not prompt for internal clients?

deny from all
allow from 192.168
Options FollowSymLinks
AllowOverride AuthConfig
AuthName "Authorized users only"
AuthType Basic
AuthDBUserFile /etc/httpd/.dbmpasswd
require valid-user
Order allow,deny
Allow from all

 
How about running a simple firewall instead? Just block all traffic to TCP port 80 from any source except your authorized network? Why make Apache work harder.


Oh, by the way, you've got dozens of security holes in that version of Apache... consider upgrading.

 
thedaver,
I can't really run a firewall cause I want it be accessible from the Internet - just want it limited to those who know username + password.

I will upgrade apache asap - thanks for the tip!
 
Your deny/allows are contradicting your last post.
 
Okay...I also tried this which didn't help. It's as if it's not reading or recognizing the "allow from" section.

allow from 192.168
deny from all
Options FollowSymLinks
AllowOverride AuthConfig
AuthName "Authorized users only"
AuthType Basic
AuthDBUserFile /etc/httpd/.dbmpasswd
require valid-user
Order allow,deny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top