From owner-freebsd-questions Mon Sep 13 7:48:22 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dt014nb6.san.rr.com (dt014nb6.san.rr.com [24.30.129.182]) by hub.freebsd.org (Postfix) with ESMTP id 7F47915595 for ; Mon, 13 Sep 1999 07:48:11 -0700 (PDT) (envelope-from Doug@gorean.org) Received: from gorean.org (master [10.0.0.2]) by dt014nb6.san.rr.com (8.9.3/8.8.8) with ESMTP id HAA14374; Mon, 13 Sep 1999 07:48:06 -0700 (PDT) (envelope-from Doug@gorean.org) Message-ID: <37DD0EA6.BBD8F678@gorean.org> Date: Mon, 13 Sep 1999 07:48:06 -0700 From: Doug Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.61 [en] (X11; U; FreeBSD 4.0-CURRENT-0912 i386) X-Accept-Language: en MIME-Version: 1.0 To: dietrich speer Cc: freebsd-questions@freebsd.org Subject: Re: restricting access to directory by host References: <3.0.5.32.19990912225144.00911370@prtel.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dietrich speer wrote: > > I want to restrict access to a directory to requests coming from certain > hosts. I've been trying .htmaccess Well, first of all by default the AccessFileName directive in Apache (I assume that's what you're talking about here) uses .htaccess, not .htmaccess. You can specify a different file, but I don't think that's what you're trying to do here. - but unsuccessfully. How do I do this, > what do I need to watch? Does anybody know? Go to http://www.apache.org/ and do a search on the Directory directive. It has examples for doing exactly what you want to do. Good luck, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message