Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ
îðèãèíàëüíîãî äîêóìåíòà
: http://www.arcetri.astro.it/manual/ko/sections.html
Äàòà èçìåíåíèÿ: Mon Jan 21 19:44:30 2013 Äàòà èíäåêñèðîâàíèÿ: Fri Feb 28 00:05:40 2014 Êîäèðîâêà: ISO8859-5 Ïîèñêîâûå ñëîâà: ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ð ï ð ï ð ï ð ï ï ð ï ï ð ï ï ð ï ï ð ï ï ð ï |
Apache HTTP Server Version 2.2
ÌÃÑ?ÖÔÐßÏÅ ÐæÄÒ
Ñ?ÍÓÎþÄÒ Ì-É? Ð?ÓÌÏÅ Ð?ÏûÅ×ÀÕÃ?, Ö?Ñ? Å?ÇÊÕôÈ?, ÖÔÐß, Ø?ÍÊÖ?,
URLÏÅÈÈ Ð?ÏûÅÙ Ì? ÐæÄé. ÐÜ É?Ì-ÄÒ ÄéÈ? Ñ?ÍÓÎþÐ× Ð?ÏûÉ?Ð?È?
Ñ?×á×ßÁòÐ?×è ÌÃÑ? ÌÍÌ×ÐÜÃ? .htaccess
ÖÔÐßÐË
Ë÷Ïû×ßÄÒ ÉöÉÐË ÌÃÈý×áÄé.
À?ÇÓÅØ È?Åò | À?ÇÓÅØ Ñ?ÍÓÎþ |
---|---|
ÌÍÌ×ÏÅÄÒ ÅÞÀÅÑ? ÑÎÇ?ÀÅ ÐæÄé. ÄûÊÞÊàÐÊ ÈÕÏôÓËÈÆÄé ÓÃÈ?ÅØÄé.
×èÄ÷×ßÄÒ ÏôÓËÏÅÈÈ ÎØÏÅ Ö?×ä×á Ñ?ÍÓÎþÈ? Ð?Ïû×áÄé. ÉíÄûÇÞ, <IfDefine>
À? <IfModule>
ÐÊ Ì-É?ÀÅ
ÍÓÐë×âÆ?ÏÝ Â?Ñ?Æ?ÈÈ ÓÃÈ?×áÄé. ÍÓÐë×âÆ? Ë?ÕÒÀÅ Ò?ÐÜÈù ÎØÏÅ ÐæÄÒ
Ñ?ÍÓÎþÀÅ È?Å÷ ÏôÓËÏÅ Ð?ÏûÅØÄé. Ò?ÐÜ ÎÖÄßÈù ÎØÏÅ ÐæÄÒ Ñ?ÍÓÎþÄÒ
É?ÍÓ×áÄé.
<IfDefine>
Ñ?ÍÓÎþÄÒ httpd
ÈýÇÙ×ðÏÅ Ð?Ð×á ÖÔÆ?ÉÜÕÝÀÅ ÐæÄÒ
ÀöÏüÏÅÈÈ ÎØÏÅ Ö?×ä×á Ñ?ÍÓÎþÈ? Ð?Ïû×áÄé. ÄéÐÍ ÌÃÑ?ÐË ÏÉÇÞ ÅùÈù,
Ì-É?È? httpd -DClosedForNow
ÇÞ ÍÓÐë×â ÀöÏüÏÅÈÈ
È?Å÷ ÏôÓËÐÜ ÄéÈ? Ë÷ÐÜÖ?ÇÞ È?ÄéÐÜÇÊÌ×ÅØÄé:
<IfDefine ClosedForNow>
Redirect / http://otherserver.example.com/
</IfDefine>
<IfModule>
Ñ?ÍÓÎþÅÅ Ö?Ñ? È?ÅòÐÜ Ì-É?ÏÅ Ö?×äÅØ ÀöÏüÏÅÈÈ ÎØÏÅ Å÷ Ñ?ÍÓÎþÈ?
Ð?Ïû×áÄéÄÒ ÑÅÐË Ñ?Ïì×ßÀýÄÒ ÈÕÏü ÊåÍÑ×ßÄé. È?ÅòÐË Ì-É?ÏÅ Ñ?Ð?ÐÈÇÞ
ÔÔÖÔÐß×ßÀÕÃ? ÅÏÐ?ÐÈÇÞ ÔÔÖÔÐß×áØÔ ÌÃÑ?ÖÔÐß ÎåÏÅ LoadModule
ÑéÐÜ ÐæÎþÎï ×áÄé. ÐÜ
Ñ?ÍÓÎþÄÒ Ö?Ñ? È?ÅòÐ× ÌÃÔÅÐ?É?ÏÅ Å?Æ? ÌÃÑ?ÖÔÐßÐÜ ÄéÈ? ×ÚÏôÀÅ
ÐæÐËÆ?ÈÈ Ë÷Ïû×èÎï ×áÄé. È?ÅòÐÜ Î?ÄÒ ÀöÏü Ð?Ïû×á ÏÐÇ?É?ÐÜ Ã?ÏÐÑ?ÎÚÐË
Ì? ÐæÁò Æ?É?ÏÅ Î?Ñ?Ã? Ë÷Ïû×ßÁö Ï?×ßÄÒ Ñ?ÍÓÎþÈ? ÎØÏÅ ÅÞÈù ÎØÅØÄé.
ÄéÐÍ ÏÉÏÅÌ- mod_mime_magic
ÐÜ ÐæÐËÆ?ÈÈ MimeMagicFiles
Ñ?ÍÓÎþÈ?
ÓÃÈ?×áÄé.
<IfModule mod_mime_magic.c>
MimeMagicFile conf/magic
</IfModule>
<IfDefine>
À?
<IfModule>
Ð×
ÀÛË÷ ÎåÏÅ "!"ÐË ÊéÏ? ÑÆÀ×ÐË Ï?ÐÈÇÞ ×â Ì? ÐæÄé. Æ×, Ï?Ç? ÌÍÌ×ÅùÐË
ÀóÓÔÌ- Ë÷Ïû×ßÏ? Ä? ÊÉÐò×á ØÏÀ?È? Î?ÐË Ì? ÐæÄé.
ÀÅÐõ ÐêÑæ Ë÷ÏûÅ×ÄÒ ÌÃÑ? ÌÍÌ×ÐÊ ÖÔÐßÍÓÍÊÕëÀ? Ð?À?À?(webspace)Ð×
Ö?Ñ? ÐõÌâÏÅ Äû×á ÌÃÑ?ÐË Ê?Àö×ßÄÒ ÀÝÅùÐÜÄé. ÈåÐ? ÐÜ ÅáÐ× Ò?ÐÜÈ?
ÐÜ×è×ßÄÒ ÀÝÐÜ ÑïÏô×ßÄé. ÖÔÐßÍÓÍÊÕëÐÊ ÏþÏÅÓÌÑ? ÐäÐõÏÅÌ- Å?ÍÊÕ?È?
ÊÈÄÒ À?ÑÅÐÜÄé. ÏÉÈ? ÅùÎþ, ÁòÊËÀ?ÐÈÇÞ ÎÖÖÔÔÅÈ? ÌÃÔÅÈ? ×ßÈù Ð?ÄàÍÊ
ÖÔÐßÍÓÍÊÕëÐ× ÀöÏü /usr/local/apache2
, Ð?ÅÅÏüÑþ
ÖÔÐßÍÓÍÊÕëÐ× ÀöÏü "c:/Program Files/Apache
Group/Apache2"
ÏÅ ÌÃÔÅÅØÄé. (ÎÖÖÔÔÅÄÒ Ð?ÅÅÏüÑþÏÅÌ- ÑÆÒ?
×çË?, Ï?ÍÍÇÅÍ?ÀÅ ÎÖÄá, ÍÍÇÅÍ?È? Ë÷Ïû×äÐË ÑæÐ××ßÆ?.) ÉíÄûÇÞ
Ð?À?À?ÐÊ Ð?Ì-É?ÀÅ Ñ?À?×ßÀý Õ?Æ?ÐÜÎ?Ö?ÀÅ ÊÈÀäÅÙ Ë÷ÐÜÖ?Ð× À?ÑÅÐÜÄé.
ÁçÇÅÌ- Ð?ÄàÍÊÏÅÌ- ÁòÊË ÎÖÖÔÔÅ ÌÃÔÅÈ? ×á ÀöÏü Ð?ÀöÇÞÐ× ÀöÇÞ
/dir/
ÐÊ ÖÔÐßÍÓÍÊÕë ÀöÇÞ
/usr/local/apache2/htdocs/dir/
ÏÅ ×èÄ÷×áÄé. Ð?À?À?ÐÊ
Å?ÐÜÕÈÊ?ÐÜÍÊ ÅþÏÅÌ- ÅÏÐ?ÐÈÇÞ ËÌÊÅÙ Ì? ÐæÁòÆ?É?ÏÅ ÉíÅõÍÓ
ÖÔÐßÍÓÍÊÕëÏÅ Ñ?Ñ? ÄûÐÐÅÙ ×ÚÏôÄÒ Î?Äé.
<Directory>
ÏÝ
<Files>
Ñ?ÍÓÎþÏÝ
Ñ?Áä×?×?ÍÔÐË Ë÷Ïû×ßÄÒ Ñ?ÍÓÎþÄÒ ÖÔÐßÍÓÍÊÕëÐ× Ö?Ñ? ÊÞÊàÏÅ Ñ?ÍÓÎþÈ?
Ð?Ïû×áÄé. <Directory>
Ñ?ÍÓÎþÏÅ Ö?×äÅØ Ñ?ÍÓÎþÅùÐÊ
Ñ?Ñ?×á ÖÔÐßÍÓÍÊÕë Å?ÇÊÕôÈ?ÏÝ Áç ×ßÐ? Å?ÇÊÕôÈ?ÏÅ Ð?ÏûÅØÄé. .htaccess ÖÔÐßÐË Ë÷Ïû×èÅÅ ÀñÀ?ÄÒ
ÀÀÄé. ÄéÐÍ ÌÃÑ?ÐË ÏÉÇÞ ÅùÈù, Å?ÇÊÕôÈ? ÈåÇß(index)ÐÜ
/var/web/dir1
ÐÜ×ß Å?ÇÊÕôÈ?ÏÅÌ- Å?ÇÊÕôÈ? ÈåÇß(index)ÐÜ
ÀÅÄÙ×ßÄé.
<Directory /var/web/dir1>
Options +Indexes
</Directory>
<Files>
ÌÍÌ×ÏÅ Ö?×äÅØ Ñ?ÍÓÎþÅùÐÊ ÎþÆÂ
Å?ÇÊÕôÈ?ÏÅ ÐæÄÒÑ? À?ÀøÎ?ÐÜ Ñ?Ñ?×á ÐÜÈ?ÐË ÀÅÑ? ÖÔÐßÏÅ Ð?ÏûÅØÄé.
ÌÃÑ?ÖÔÐßÐ× ÑæÌÃÑ?ÊÞÊàÏÅ ÐæÄÒ ÄéÐÍ ÌÃÑ?ÐË ÏÉÇÞ ÅùÈù, ÐõÌâÏÝ
À?ÀøÎ?ÐÜ private.html
ÐÜÆ? ÐÜÈ?ÐË ×á ÖÔÐßÐ× Ñ?ÁéÐË
ÀÕÊÞ×áÄé.
<Files private.html>
Order allow,deny
Deny from all
</Files>
ÖÔÐßÍÓÍÊÕëÐ× Ö?Ñ? ÊÞÊàÏÅ ÐæÄÒ ÖÔÐßÐË Ñ?Ô?×ßÁòÐ?×è <Files>
ÏÝ <Directory>
ÌÍÌ×ÐË ÀÀÐÜ
Ë÷Ïû×áÄé. ÄéÐÍ ÌÃÑ?ÐË ÏÉÇÞ ÅùÈù,
/var/web/dir1/private.html
,
/var/web/dir1/subdir2/private.html
,
/var/web/dir1/subdir3/private.html
ÀÀÐÜ
/var/web/dir1/
Å?ÇÊÕôÈ? ÎÖÇÅÏÅ ÐæÄÒ ÐÜÈ?ÐÜ
private.html
ÐÞ ÖÔÐßÐ× Ñ?ÁéÐË ÀÕÊÞ×áÄé.
<Directory /var/web/dir1>
<Files private.html>
Order allow,deny
Deny from all
</Files>
</Directory>
<Location>
Ñ?ÍÓÎþÏÝ ÐÜÏÅ ×èÄ÷×ßÄÒ Ñ?Áä×?×?ÍÔÐË Ë÷Ïû×ßÄÒ Ñ?ÍÓÎþÄÒ ÉíÄûÇÞ
Ö?Ñ? Ð?À?À?Ð× ÌÃÑ?ÐË ÉéÂëÄé. ÄéÐÍ ÌÃÑ?ÐË ÏÉÇÞ ÅùÈù, /privateÐÈÇÞ
ÍÓÐë×ßÄÒ URL-ÀöÇÞÐ× Ñ?ÁéÐÜ ÀÕÊÞÅØÄé. Ï?ÁòÏÅÄÒ
http://yoursite.example.com/private
,
http://yoursite.example.com/private123
,
http://yoursite.example.com/private/dir/file.html
ÀÀÐÜ /private
É?ÐêÏ-ÇÞ ÍÓÐë×ßÄÒ ÏôÓËÐÜ ×èÄ÷ÅØÄé.
<Location /private>
Order Allow,Deny
Deny from all
</Location>
<Location>
Ñ?ÍÓÎþÄÒ ÖÔÐßÍÓÍÊÕëÏÅ ÄûÐÐ×â ×ÚÏôÀÅ Î?Äé. ÄéÐÍ ÏÉÄÒ ÎþÆËÀä Ö?Ñ?
URLÐË mod_status
ÀÅ Ñ?À?×ßÄÒ ÎÖÖÔÔÅ ÃËÊÞ ×êÅùÇ?ÇÞ
ÄûÐÐÍÓÕÀÄÒÑ?È? ÊÈÏ?ÑèÄé. ÖÔÐßÍÓÍÊÕëÏÅ server-status
Æ?ÄÒ
ÖÔÐßÐÊ ×ÚÏôÎ?Äé.
<Location /server-status>
SetHandler server-status
</Location>
<Directory>
,
<Files>
,
<Location>
Ñ?ÍÓÎþÏÅÌ- C ×?Ñè ÖÔÐÜÊúÇ?È?Ð× fnmatch
ÏÝ ÀÀÐÊ
Í?ÏÅÌ- Ë÷Ïû×ßÄÒ ÏÝÐßÅõÔ?Åõ É?ÐêÈ? Ë÷Ïû×â Ì? ÐæÄé.
"*" É?ÐêÄÒ ÎþÆ É?ÐêÏ-ÐÜÆ?ÅÅ Ã?ÕÈÃËÀý, "?" É?ÐêÄÒ ÎþÆ É?Ðê ×áÀÃÈ?
Ã?ÕÈÃËÈ÷, "[seq]"ÄÒ seq ÑïÏÅ ×á É?ÐêÈ? Ã?ÕÈÃÍÄé.
ÎþÆ ÏÝÐßÅõÔ?ÅõÅÅ "/" É?ÐêÈ? Ã?ÕÈÃËÑ?ÄÒ È?×áÄé. ÁçÇÅÌ- ÐÜ É?ÐêÄÒ
Ñ?Ñ? Ë÷Ïû×èÎï ×áÄé.
Ä? Ð?Ï?×á ÌÃÑ?ÐÜ ×ÚÏô×ßÈù perlØ?Ø? Ñ?Áä×?×?ÍÔÐË Ë÷Ïû×ßÄÒ <DirectoryMatch>
, <FilesMatch>
, <LocationMatch>
È? Ë÷Ïû×â
Ì? ÐæÄé. ÁçÇ?Ã? ÎÖÇÅ ÌÃÑ?Ð× Àñ×åÏÅ À?×á ÐÏÅÌ- Ñ?Áä×?×?ÍÔ ÌÍÌ×ÐË
Ë÷Ïû×ßÈù Ñ?ÍÓÎþÀÅ Ð?ÏûÅ×ÄÒ ÉöÉÐÜ ÎþÆËÀä Ê?×ßÄÒÑ? ËüÖüÊÑÆ?.
È?Å÷ Ë÷ÏûÐê Å?ÇÊÕôÈ? ÌÃÑ?ÐË Ê?Àö×ßÄÒ ÊåÑ?Áä×?×?ÍÔ ÏÝÐßÅõÔ?Åõ ÌÍÌ×ÐÊ ÄéÐÍÀ? ÀÀÄé:
<Directory /home/*/public_html>
Options Indexes
</Directory>
Ñ?Áä×?×?ÍÔ ÌÍÌ×ÐË Ë÷Ïû×ßÏ? ×áÉ?ÏÅ Ï?Ç? ÑÎÇ?Ð× ÁçÈÂÖÔÐßÏÅ Äû×á Ñ?ÁéÐË ÀÕÊÞ×â Ì? ÐæÄé:
<FilesMatch \.(?i:gif|jpe?g|png)$>
Order allow,deny
Deny from all
</FilesMatch>
ÖÔÐßÍÓÍÊÕë ÌÍÌ×À? Ð?À?À? ÌÍÌ× Ñï ×ßÃ?È? ÌÁÕÓ×ßÄÒ ÀÝÐÊ Í×Ñ?ÇÞ
ÈÕÏü ÍÁÄé. ÖÔÐßÍÓÍÊÕëÏÅ ÐæÄÒ ÀÄÓÌÏÅ Ñ?ÍÓÎþÈ? Ð?Ïû×âÆ?ÄÒ ×çË?
<Directory>
Ã?
<Files>
È?
Ë÷Ïû×áÄé. (Å?ÐÜÕÈÊ?ÐÜÍÊÏÅÌ- ËÌÊ×á Ð?ÖôÐÜÑ?ÏÝ ÀÀÐÜ) ÖÔÐßÍÓÍÊÕëÏÅ
ÐæÑ? ÎÚÄÒ ÀÄÓÌÏÅ Ñ?ÍÓÎþÈ? Ð?Ïû×âÆ?ÄÒ <Location>
ÐË Ë÷Ïû×áÄé.
ÖÔÐßÍÓÍÊÕëÏÅ ÐæÄÒ ÀÄÓÌÐ× Ñ?ÁéÐË Ñ?×á×ßÁòÐ?×è <Location>
ÐË Ë÷Ïû×ßÈù
ÐÄû ÎØÅØÄé. Ï?Ç? ÄéÈ? Ð?À?À? ÐõÌâ(URL)ÀÅ ÀÀÐÊ ÖÔÐßÍÓÍÊÕë ÐõÌâÏÅ
ÄûÐÐÅÙ Ì? ÐæÐÈÉ×ÇÞ, ÀÙÎþÅà Ñ?×áÐË ÏüØÈ×â Ì? ÐæÁò Æ?É?ÐÜÄé. ÄéÐÍ
ÌÃÑ?Ð× ÏÉÈ? ËüÖüÊÈÐê:
<Location /dir/>
Order allow,deny
Deny from all
</Location>
ÐÜ ÌÃÑ?ÐÊ http://yoursite.example.com/dir/
ÐË
ÏôÓË×áÄéÈù Ðï ÐëÅÏ×áÄé. ÁçÇ?Ã? ÄûÌâÉ?ÐêÈ? ÁÈÊÀ×ßÑ?ÎÚÄÒ ÖÔÐßÍÓÍÊÕëÐË
Ë÷Ïû×áÄéÈù ÎþÆËÀäÅ×Ã??
http://yoursite.example.com/DIR/
ÐË ÏôÓË×ßÏ? ÍÁÀä
Ñ?×áÐË ÏüØÈ×â Ì? ÐæÄé. ÉíÄûÇÞ <Directory>
Ñ?ÍÓÎþÄÒ ÎþÆËÀä ÏôÓË×ßÏÄÄÒÑ?
À?ÀøÎ?ÐÜ Áç ÐõÌâÏÅÌ- Ì-ÊåÍÊÅ×ÄÒ ÃËÏûÏÅ Ð?ÏûÅØÄé. (ÏÉÏìÄÒ ÖÔÐßÍÓÍÊÕë
ÈÅÕ?È? Ë÷Ïû×ßÄÒ ÀöÏüÄé. ÍÙÊÌÈÅÕ?È? Ë÷Ïû×ßÏ? ×á Å?ÇÊÕôÈ?È?
ÖÔÐßÍÓÍÊÕëÐ× Ï?Ç? ÐõÌâÏÅ Åá Ì? ÐæÄé. <Directory>
Ñ?ÍÓÎþÄÒ ÍÙÊÌÈÅÕ?È? Å?Æ?À?Äé.
ÁçÇ?É×ÇÞ Ã?ÐÊ Ì?ÑèÐ× ÊÈÎØÐË Ð?×èÌ-ÄÒ Ð?Ð×á Options
Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÏ? ÍÙÊÌÈÅÕ?È?
É?ÍÓ×èÎï ×áÄé.)
ÎÖÈÆÅÅ Ä÷ÍÕÐÊ ÄûÌâÉ?ÐêÈ? ÁÈÊÀ×ßÄÒ ÖÔÐßÍÓÍÊÕëÐË Ë÷Ïû×ßÉ×ÇÞ
ÐÜÇÁ ÐßÐÜ ÐßÎþÃ?Ñ? ÎÚÄÒÄéÀý ËÀ?×âÑ?ÅÅ È?È?Äé. ÁçÇ?Ã? ÄéÈ?
ÉöÉÐÈÇÞÅÅ Ï?Ç? Ð?À?À? Ð?ÔÅÀÅ ×á ÖÔÐßÍÓÍÊÕë Ð?ÔÅÏÅ ÄûÐÐÅÙ Ì?
ÐæÐÍÐË ÁòÎÿ×ßÆ?. ÁçÇÅÌ- ÀÅÄÙ×ßÈù ×çË? ÖÔÐßÍÓÍÊÕë ÌÍÌ×ÐË Ë÷Ïû×èÎï
×áÄé. ÁçÇ?Ã? ÐÜ ÁäÔ?ÏÅ ÏÉÏìÀÅ ×ßÃ? ÐæÄé. ÌÃÑ? Ñ?×áÐË
<Location />
ÌÍÌ×ÏÅ ÅÞÈù ÐÜ ÌÍÌ×ÐÜ Ö?Ñ?
URLÐÜ ÎÖÄá È?Å÷ ÏôÓËÏÅ Ð?ÏûÅ×É×ÇÞ ÏßÊ?×ßÀä ÎØÐ?×ßÄé.
<VirtualHost>
ÌÍÌ×ÐÊ Ö?Ñ? Ø?ÍÊÖ?ÏÅ Ð?ÏûÅ×ÄÒ Ñ?ÍÓÎþÅùÐË Ö?×ä×áÄé. ÐÜÄÒ ×á
ÔÔ×ËÕÝÏÅÌ- À?À? ÄéÈ? ÌÃÑ?ÐË Ë÷Ïû×á Ï?Ç? Ø?ÍÊÖ?È? Ì-ÊåÍÊ×âÆ?
Ð?Ïû×ßÄé. Ä? ÐêÌÌ×á Ñ?ÊÈÄÒ ÀÅË?Ø?ÍÊÖ? É?Ì-È?
Ò?Àý×ßÆ?.
<Proxy>
ÏÝ
<ProxyMatch>
ÌÍÌ×ÐÊ Ñ?Ñ?×á URLÏÅ Äû×è mod_proxy
×ÑÇßÍÓ Ì-É?È?
ÀÕÓÔ Ñ?Áé×ßÄÒ ÀöÏüÏÅÈÈ Ð?ÏûÅØÄé. ÄéÐÍ ÌÃÑ?ÐË ÏÉÇÞ ÅùÈù, ×ÑÇßÍÓ
Ì-É?È? Õû×è cnn.com
Ð?Ë÷ÐÜÖ?ÏÅ Ñ?Áé×â Ì? Î?Äé.
<Proxy http://cnn.com/*>
Order allow,deny
Deny from all
</Proxy>
ÎþÆ ÌÃÑ? ÌÍÌ×ÎØÏÅ Ë÷Ïû×â Ì? ÐæÄÒ Ñ?ÍÓÎþÈ? ÎÛÇÑÈù Ñ?ÍÓÎþÐ×
Ë÷ÏûÐõÌâÈ? Ø?ÐÞ×ßÆ?.
<Directory>
ÏÅÌ-
Ë÷ÏûÀÅÄÙ×á Ñ?ÍÓÎþÄÒ <DirectoryMatch>
, <Files>
, <FilesMatch>
, <Location>
, <LocationMatch>
, <Proxy>
, <ProxyMatch>
ÌÍÌ×ÏÅÌ-ÅÅ Ë÷ÏûÀÅÄÙ×ßÄé.
ÁçÇ?Ã?, ÏÉÏìÀÅ ÐæÄé:
AllowOverride
Ñ?ÍÓÎþÄÒ
<Directory>
ÌÍÌ×ÏÅÌ-ÈÈ Ë÷Ïû×â Ì? ÐæÄé.FollowSymLinks
, SymLinksIfOwnerMatch
,
Options
ÄÒ <Directory>
ÌÍÌ×ÐÜÃ?
.htaccess
ÖÔÐßÏÅÌ-ÈÈ Ë÷Ïû×â Ì? ÐæÄé.Options
Ñ?ÍÓÎþÄÒ
<Files>
À?
<FilesMatch>
ÌÍÌ×ÏÅÌ- Ë÷Ïû×â Ì? Î?Äé.ÌÃÑ? ÌÍÌ×ÐÊ ÈÕÏü Ö?ÊÀ×á ÉöÉÐÈÇÞ Ð?ÏûÅØÄé. ÐÜ Ì?Ì-ÀÅ ÌÃÑ? Ñ?ÍÓÎþÈ? ×èÌ?×ßÄÒ ÉöÉÏÅ ÑïÏô×á ÏÅ×òÐË ÑæÁòÆ?É?ÏÅ ÐÜ ÉöÉÐË ÐÜ×è×ßÄÒ ÀÝÐÜ ÑïÏô×ßÄé.
Àñ×å×ßÄÒ Ì?Ì-ÄÒ:
<Directory>
ÏÝ .htaccess
ÄÒ
ÅÏÍÓÏÅ ÐßÎþÃ-Äé (ÀöÏüÏÅ Å?Æ? .htaccess
ÐÜ
<Directory>
È?
É?ÍÓ×ßÅÅÇß ÌÃÑ?×â Ì? ÐæÄé)<DirectoryMatch>
(ÁçÈ?Àý
<Directory ~>
)<Files>
ÏÝ <FilesMatch>
ÄÒ ÅÏÍÓÏÅ ÐßÎþÃ-Äé<Location>
À? <LocationMatch>
ÄÒ ÅÏÍÓÏÅ ÐßÎþÃ-Äé<Directory>
È? Ñ?Ïì×ßÀý À? ÌÍÌ×ÅùÐË
ÌÃÑ?ÖÔÐßÏÅ Ã?ÏÒ Ì?Ì-ÄûÇÞ ÓÃÈ?ÅØÄé. (Ð?Ð× Ì?Ì- 1) <Directory>
ÄÒ Å?ÇÊÕôÈ?
ÃËÏûÐÜ ÀÅÐõ Ò?ÐÊ ÀÝÏÅÌ- ÁôÒÚÐÈÇÞ ÓÃÈ?ÅØÄé. ÁçÇÅÌ- ÏÉÈ? ÅùÎþ,
<Directory /var/web/dir>
ÐË
<Directory /var/web/dir/subdir>
ÐÜÐ?ÏÅ
ÓÃÈ?×áÄé. ÀÀÐÊ Å?ÇÊÕôÈ?È? Ñ?Ô?×ßÄÒ Ï?Ç? <Directory>
ÌÍÌ×ÐÜ
ÐæÄéÈù ÐÜÅùÐË ÌÃÑ?ÖÔÐß Ì?Ì-ÄûÇÞ ÓÃÈ?×áÄé. Include
Ñ?ÍÓÎþÇÞ Ö?×ä×á ÌÃÑ?ÐÊ
Include
Ñ?ÍÓÎþ Ð?ÔÅÏÅ
Ö?×ä×á ÖÔÐß ÃËÏûÐÜ ÐæÄÒ ÀÝÓÃÇà ÓÃÈ?×áÄé.
<VirtualHost>
ÌÍÌ× ÎØÏÅ Ö?×äÅØ ÌÍÌ×ÐÊ
ÀÅË?Ø?ÍÊÖ? Ñ?Ð× ÉëÏÅ ÐæÄÒ ×èÄ÷ ÌÍÌ× ÐÜØÔÏÅ Ð?ÏûÅØÄé.
ÁçÇÅÌ- ÀÅË?Ø?ÍÊÖ? ÎØÏÅÌ- ÑæÌ-É?Ð× ÌÃÑ?Ë÷×çÐË Ì?Ñ?×â Ì? ÐæÄé.
mod_proxy
ÀÅ ÏôÓË Ì-ÊåÍÊ×âÆ?, <Proxy>
ÌÍÌ×Ð×
ÓÃÈ?Ì?Ì-ÄÒ <Directory>
ÌÍÌ×À? ÀÀÄé.
ÄéÐÍÏÅ Ã?ÏÐÄÒ ÌÍÌ×ÐÊ ÐÜÐ? ÌÍÌ×Ð× ÀñÀ?È? Ì?Ñ?×áÄé.
<Location>
/<LocationMatch>
ÄÒ
(Aliases
ÏÝ DocumentRoot
È? Ë÷Ïû×ßÏ?
URLÐË ÖÔÐßÈýÐÈÇÞ Ê?Ø?×ßÄÒ) ÐÜÈ?É?Ï? ÄìÀø ÐÜÐ?ÏÅ ÓÃÈ?ÅØÄé.
Ê?Ï?ÐÜ ÃÅÃ- ÐÜØÔÏÅÄÒ ÏßÐ?Ø? É?ÍÓ×áÄé.
ÄéÐÍÐÊ Àó×å×ßÄÒ Ì?Ì-È? ÌÃÈý×ßÄÒ ÏÉÄé. ÐÜÅù È?ÅÞ ÏôÓËÏÅ Ð?ÏûÅØÄéÀý ÀÅÑ?×ßÈù Ñ?ÍÓÎþÄÒ A > B > C > D > E Ì?Ì-ÇÞ ÓÃÈ?ÅØÄé.
<Location />
E
</Location>
<Files f.html>
D
</Files>
<VirtualHost *>
<Directory /a/b>
B
</Directory>
</VirtualHost>
<DirectoryMatch "^.*b$">
C
</DirectoryMatch>
<Directory /a/b>
A
</Directory>
Ä? ×?Í×Ð?ÐÞ ÏÉÄÒ ÄéÐÍÀ? ÀÀÄé. <Location>
ÌÍÌ×ÐË Ã?ÑïÏÅ ÓÃÈ?×ßÉ×ÇÞ
<Directory>
ÌÍÌ×ÏÅ ÐæÄÒ Ñ?ÁéÑ?×áÀ? À?ÀøÎ?ÐÜ Ì-É?ÏÅ É?Ñ?×á Ñ?ÁéÐË ÀÅÄÙ×ßÄé.
Ñÿ, Àñ×å×ßÄÒ Ì?Ì-ÄÒ ÑïÏô×ßÉ×ÇÞ ÑæÐ××ßÆ?!
<Location />
Order deny,allow
Allow from all
</Location>
# Î×! ÐÜ <Directory> ÌÍÌ×ÐÊ ÎÖÉ?ÇÁ ØÏÀ?ÀÅ Î?Äé
<Directory />
Order allow,deny
Allow from all
Deny from badguy.example.com
</Directory>