Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2000 10:00:35 +0530
From:      Chirag Kantharia <chyrag@slashetc.net>
To:        Meagan Jia Pi <meagan@e-lingo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: allow access to specific IP addresses in Apache
Message-ID:  <20000614100035.A9541@slashetc.net>
In-Reply-To: <016601bfd555$013bb590$e293c83f@meagan>
References:  <D76D503DE976D1119C7E00A0C944D87501CA8013@RSYS002A> <016601bfd555$013bb590$e293c83f@meagan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 13, 2000 at 09:32:45AM -0700, Meagan Jia Pi wrote:
| [begin]
| Order deny,allow
|  Deny from all
| Allow from 111.222.333.444
| Allow from 222.111.222.
| Allow from 333.222.
| [end]

This I presume you have done this way:

<Directory "/path/to/document/root">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 111.222.333.444
    Allow from 222.111.222.
    Allow from 333.222.
</Directory>

| but it doesn't take any effects for pages under each users' public_html
| directories.
| In other words,  www.mydomain.com/~username are still open to any IP.
| 
| How can I make ~username pages be viewed by certain IPs then?

This is done in similar way (provided your users are in /home):

<Directory "/home/*/public_html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 111.222.333.444
    Allow from 222.111.222.
    Allow from 333.222.
</Directory>

It's there in the httpd.conf if you look carefully.

HTH,
chyrag.
-- 
Chirag Kantharia <chyrag@slashetc.net> http://slashetc.net/chyrag/
GCS/IT d- s-:->: a? C++++$ UBLS++++$ P++++(++)$ L++ E- W++ N--@ K---
w--- M->-- PE++ PGP->+ R* b+ DI+ D+ G++ e++ h* r-- !z+



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000614100035.A9541>