LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 11-08-2007, 02:11 AM   #1
clue_less
LQ Newbie
 
Registered: Apr 2007
Location: ACT
Distribution: Red Hat
Posts: 18
Thanked: 0
apache - ACL lists


[Log in to get rid of this advertisement]
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
clue_less is offline  
Tag This Post , , , ,
Reply With Quote
Old 11-08-2007, 03:58 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 369
Thanked: 3
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.
brianmcgee is offline     Reply With Quote
Old 11-10-2007, 01:25 AM   #3
clue_less
LQ Newbie
 
Registered: Apr 2007
Location: ACT
Distribution: Red Hat
Posts: 18
Thanked: 0

Original Poster
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
clue_less is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 06:30 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration