LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 11-08-2007, 02:11 AM   #1
clue_less
LQ Newbie
 
Registered: Apr 2007
Location: ACT
Distribution: Red Hat
Posts: 18

Rep: Reputation: 0
apache - ACL lists


On RHEL-4:
How to configure a private website that is only accessible to hosts on my internal network using apache's acl lists?

Much thanks,
clue_less
 
Old 11-08-2007, 03:58 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 38
Also on non RHEL Apache setups:

Code:
<VirtualHost>
...
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
Allow from .example.com
...
</VirtualHost>
This will allow connections to the vhost from the domain .example.com (you could also use an IP range) and from localhost.
 
Old 11-10-2007, 01:25 AM   #3
clue_less
LQ Newbie
 
Registered: Apr 2007
Location: ACT
Distribution: Red Hat
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks, brianmcgee.
Can you put all the options inside the Directory of the website?
What is the difference?

<Directory /var/www/html/example.com/>
...
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
Allow from .example.com
...
</Directory>

If I put an ip range inside, is it the acl?
The Red Hat Academy chapter on Virtual Host said you can put an acl inside the VirtualHost, but didn't show how.

clue_less
 
  


Reply

Tags
acl, apacheconf, list, rhel4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
acl sheetu Solaris / OpenSolaris 1 09-10-2006 01:48 PM
Anyone who used acl.h funtions? kcv Suse/Novell 0 10-13-2005 08:09 PM
apache lists file tuxrules Slackware 3 12-24-2004 01:12 AM
acl permissions linuxtesting2 Linux - General 0 10-25-2004 03:18 PM
ACL Help theDrix Linux - General 0 07-22-2004 09:25 AM


All times are GMT -5. The time now is 11:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration