Re: I want a file can be accessed by some ip only, how to do that?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux