Apache http : prevent access to any file or URL-path
deny access to any file named private.html

1. regardless of where it is found,

<Files private.html>
Order allow,deny
Deny from all
</Files>

2. found in a praticular part of the filesystem, "/var/web/dir1/"

<Directory /var/web/dir1>
<Files private.html>
Order allow,deny
Deny from all
</Files>
</Directory>

Directives enclosed in a <Directory> section apply to the named filesystem directory and all subdirectories of that directory.
Directives enclosed in a <Files> section apply to any file with the specified name, regardless of what directory it lies in.


Prevent access to any URL-path the begins in /private

<Location /private>
Order Allow,Deny
Deny from all
</Location>

It will apply to requests for,
http://yoursite.example.com/private, http://yoursite.example.com/private123, and http://yoursite.example.com/private/dir/file.html as well as any other requests starting with the /private string.


[Reference : Apache HTTP Server Documentation - Configuration Sections]
by bellagio | 2008/09/25 16:37 | Linux | 트랙백 | 덧글(0)
트랙백 주소 : http://bellagio.egloos.com/tb/2048894
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글



<< 이전 페이지 다음 페이지 >>