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]

 



i think you should put the two file in different dirs,and use Allow,Deny dictate to do the access control,

for example:

<Directory "/index1">
    Order deny,allow
    Allow from 10.5.0.0/255.255.0.0
    Allow from 127.0.0.1
    Deny from all
</Directory>

hope this help.


2009/7/1 Yi Zhao <zhao_yi707@xxxxxxxxxxxx>
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?
 
 
thanks




--
Tianjing

MSN:tianjing217@xxxxxxxxxxx

[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