[H-GEN] Apache restrict directory (fwd)
Martin Pool
mbp at linuxcare.com.au
Sun Apr 16 02:58:54 EDT 2000
[ 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'.
More information about the General
mailing list