httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Bell <d...@plainblack.com>
Subject Re: [users@httpd] I want a file can be accessed by some ip only, how to do that?
Date Wed, 01 Jul 2009 06:00:21 GMT

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.
[ http://plainblack.com ]
all that groks is


Mime
View raw message