Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

Re: [users@httpd] I want a file can be accessed by some ip only, how to do that?

Doug Bell

2009-07-01

Replies: Find Java Web Hosting

Author LoginPost Reply

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

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.