Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 89046 invoked from network); 1 Jul 2009 06:00:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 06:00:49 -0000 Received: (qmail 37859 invoked by uid 500); 1 Jul 2009 06:00:57 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 37776 invoked by uid 500); 1 Jul 2009 06:00:56 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 37767 invoked by uid 99); 1 Jul 2009 06:00:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 06:00:56 +0000 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [72.1.4.143] (HELO mail.commctrl.com) (72.1.4.143) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 06:00:44 +0000 Received: from [192.168.202.46] (unknown [192.168.202.46]) by mail.commctrl.com (Postfix) with ESMTP id ACDAD437B for ; Wed, 1 Jul 2009 01:00:21 -0500 (CDT) Message-Id: <90A79AE2-7181-4CF2-932C-4C545239DCFE@plainblack.com> From: Doug Bell To: users@httpd.apache.org In-Reply-To: <329878.5895.qm@web15307.mail.cnb.yahoo.com> Content-Type: multipart/alternative; boundary=Apple-Mail-171--314634391 Mime-Version: 1.0 (Apple Message framework v935.3) Date: Wed, 1 Jul 2009 01:00:21 -0500 References: <329878.5895.qm@web15307.mail.cnb.yahoo.com> X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] I want a file can be accessed by some ip only, how to do that? --Apple-Mail-171--314634391 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Jun 30, 2009, at 11:52 PM, Yi Zhao wrote: > hi, all: > I have 2 file(index.html, run.log) in directory: index/, now both > can be accessed by all people, but I want do that: > run.log can be accessed by some specified ip only, how to do that? Order allow,deny Allow from all Order deny,allow Deny from all Allow from 127.0.0.1 Doug Bell -- Senior Developer, Plain Black Corp. [ http://plainblack.com ] all that groks is --Apple-Mail-171--314634391 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Jun 30, 2009, = at 11:52 PM, Yi Zhao wrote:

hi, all:
I have 2 file(index.html, = run.log) in directory: index/, now both can be accessed by all = people, but I want do that:
run.log can be accessed by some = specified ip only, how to do = that?

<= Directory index>
Order allow,deny
Allow = from all
<Files = run.log>
Order = deny,allow
Deny from = all
= Allow from 127.0.0.1
= </Files>
</Directory>

Doug Bell -- Senior Developer, Plain Black = Corp.
all = that groks = is

= --Apple-Mail-171--314634391--