From owner-freebsd-questions Tue Jun 13 21:33: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost.iitb.ac.in (mailhost.iitb.ac.in [203.197.74.142]) by hub.freebsd.org (Postfix) with SMTP id F412337B979 for ; Tue, 13 Jun 2000 21:32:57 -0700 (PDT) (envelope-from chyrag@mitra.cse.iitb.ernet.in) Received: (qmail 24902 invoked from network); 14 Jun 2000 04:42:53 -0000 Received: from mitra.cse.iitb.ernet.in (144.16.111.21) by mailhost.iitb.ac.in with SMTP; 14 Jun 2000 04:42:53 -0000 Received: (from chyrag@localhost) by mitra.cse.iitb.ernet.in (8.9.3/8.8.8) id KAA09792; Wed, 14 Jun 2000 10:00:35 +0530 Date: Wed, 14 Jun 2000 10:00:35 +0530 From: Chirag Kantharia To: Meagan Jia Pi Cc: freebsd-questions@freebsd.org Subject: Re: allow access to specific IP addresses in Apache Message-ID: <20000614100035.A9541@slashetc.net> Reply-To: Chirag Kantharia References: <016601bfd555$013bb590$e293c83f@meagan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <016601bfd555$013bb590$e293c83f@meagan> X-Url: http://slashetc.net/chyrag/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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: 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. | 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): 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. It's there in the httpd.conf if you look carefully. HTH, chyrag. -- Chirag Kantharia 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