[H-GEN] Apache restrict directory (fwd)

yh tan yh at techie.com
Mon Apr 17 02:02:21 EDT 2000


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]

Cool directive implementations! thanks Martin & Luke!!
both methods work well! the logical way which Martin brought up is more
flexible. Cheers!

-yh

------Original Message------
From: Martin Pool <mbp at linuxcare.com.au>
To: general at humbug.org.au
Sent: April 16, 2000 6:58:54 AM GMT
Subject: Re: [H-GEN] Apache restrict directory (fwd)


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]

(Is the whole general-post list situation really worth the hassle?)

On Thu, 13 Apr 2000, yh tan wrote:

> thanks for the replies from mike andrew & nikolai lusan regarding my
queries
> on 2 bootable linux partitions. :)
>
> here's another curious idea i'm exploring... pls pitch in your
suggestions.
>
> i'm curious if it's possible to restrict directory access of the apache
web
> server by just turning the knobs in httpd.conf or/and srm.conf or/and
> access.conf?
>
> let's say i allow EVERYONE to access,
> http://10.10.10.1/index.html
> and,
> i want to ONLY allow users in 10.10.10.5.0/24 to have access to,
> http://10.10.10.1/secrets/index.html

Sure!

<Location />
order allow,deny
allow from all
</Location>

<Location /secrets>
order allow,deny
allow from 10.10.10.5.0/24           # what kind of IP address is THAT?
deny from all
</Location>

RTFM for more details.

--
Martin Pool



--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.

______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list