Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ
îðèãèíàëüíîãî äîêóìåíòà
: http://www.arcetri.astro.it/manual/ko/mod/mod_authz_host.html
Äàòà èçìåíåíèÿ: Mon Jan 21 19:44:30 2013 Äàòà èíäåêñèðîâàíèÿ: Fri Feb 28 08:06:28 2014 Êîäèðîâêà: ISO8859-5 Ïîèñêîâûå ñëîâà: ï ï ï ï ï ï ï ï ï ï ï ï ï ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï |
Apache HTTP Server Version 2.2
ÌÃÈý: | Ø?ÍÊÖ? (ÐÜÈ?ÐÜÃ? IP ÑæÌâ)È? Ë÷Ïû×á ÁçÇü Á××áÊÞÏ? |
---|---|
Ë?ÕÒ: | Base |
È?ÅòÈý: | authz_host_module |
ÌâÍÊÖÔÐß: | mod_authz_host.c |
Ñ?Ï?: | ÎÖÖÔÔÅ 2.1 ÐÜØÔÊÞÕÝ |
<Directory>
,
<Files>
,
<Location>
ÌÍÌ×À? .htaccess
ÖÔÐßÏÅÌ- Ì-É?Ð× Ö?Ñ? ÊÞÊàÐ× Ñ?ÁéÐË Ñ?Îþ×ßÁòÐ?×è
mod_authz_host
ÀÅ Ñ?À?×ßÄÒ Ñ?ÍÓÎþÈ? Ë÷Ïû×áÄé.
Õ?Æ?ÐÜÎ?Ö?Ð× Ø?ÍÊÖ?Èý, IP ÑæÌâ, Ø?ÀöÊ?Ì?ÏÅ ÁòÇßÅØ ÏôÓËÐ× Ö?ÌÊÏÅ Å?Æ?
Ñ?ÁéÐË Ñ?Îþ×áÄé. Allow
ÏÝ Deny
Ñ?ÍÓÎþÄÒ ÎþÆÂ
Õ?Æ?ÐÜÎ?Ö?ÀÅ Ì-É?ÏÅ Ñ?Áé×â Ì? ÐæÄÒÑ?È? Ñ?ÍÓ×ßÀý, Order
Ñ?ÍÓÎþÄÒ ÁòÊËÐ?ÐÈÇÞ
Ñ?ÁéÐË ×óÏû×âÑ? ÀÕÊÞ×âÑ? Ï?ÊÞÏÝ ÎþÆËÀä Allow
Ñ?ÍÓÎþÏÝ Deny
Ñ?ÍÓÎþÀÅ Ì-ÇÞ ÏÅ×òÐË
ÉÜÔÅÄÒÑ? ÀñÑ?×áÄé.
Ø?ÍÊÖ?ÁòÉí Ñ?ÁéÑ?×áÀ? ÎßØ?ÁòÉí ÐÞÑ?ÐË ÅÏÍÓÏÅ Ë÷Ïû×â Ì?ÅÅ
ÐæÄé. ÐÜ ÀöÏü Satisfy
Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÏ? ÎþÆËÀä ÅÞ Ñ?×áÐÜ Ì-ÇÞ ÏÅ×òÐË ÉÜÔÅÄÒÑ?
ÀñÑ?×áÄé.
ÐßÉíÐ?ÐÈÇÞ Ñ?ÁéÑ?×á Ñ?ÍÓÎþÄÒ (GET
,
PUT
, POST
Åþ) È?Å÷ ÈîÌ-ÅõÏÅ Ð?ÏûÅ×È÷,
ÐÜ ×ðÅÏÐÊ ÄûÊÞÊàÐ× ÀöÏü ÉéÆ?Ñ?×ßÄé. ÁçÇ?Ã? <Limit>
ÌÍÌ×ÎØÏÅ
Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÏ? Ö?Ñ? ÈîÌ-ÅõÏÅÈÈ Ñ?×á×â Ì? ÐæÄé.
ÌÃÈý: | Ì-É?Ð× ÐßÊÞÏÅ Ñ?Áé×â Ì? ÐæÄÒ Ø?ÍÊÖ?È? Ñ?Ñ?×áÄé |
---|---|
É?É: | Allow from all|host|env=env-variable
[host|env=env-variable] ... |
Ë÷ÏûÐõÌâ: | directory, .htaccess |
Override ÏÙÌ×: | Limit |
Ë?ÕÒ: | Base |
È?Åò: | mod_authz_host |
Allow
Ñ?ÍÓÎþÄÒ ÎþÆ Ø?ÍÊÖ?ÀÅ Ì-É?Ð×
ÐßÊÞÏÅ Ñ?Áé×â Ì? ÐæÄÒÑ? Ñ?ÍÓ×áÄé. Ø?ÍÊÖ?Èý, IP ÑæÌâ, IP
ÑæÌâÏÅÏ?, Ø?ÀöÊ?Ì?ÏÅ ÁòÇßÅØ ÄéÈ? Ö?ÌÊÏÅ Å?Æ? Ñ?ÁéÐË ÑÆÐ×â
Ì? ÐæÄé.
ÐÜ Ñ?ÍÓÎþÐ× ÓÉÉ?ÒÀ ÎÖÁäÈåÖ?ÄÒ ×çË? from
ÐÜÄé.
ÄéÐÍ ÎÖÁäÈåÖ?ÏÅÄÒ ÌÌÀÅÑ? ×?ÍÔÐÜ ÐæÄé. Allow from all
ÐË
Ë÷Ïû×ßÈù, ÎÖÇÅÏÅÌ- ÌÃÈý×â Deny
ÏÝ Order
Ñ?ÍÓÎþ ÌÃÑ?ÏÅ
Å?Æ? È?Å÷ Ø?ÍÊÖ?Ð× Ñ?ÁéÐË ×óÀÅ×áÄé. Ö?Ñ? Ø?ÍÊÖ?ÈÈ Ì-É?ÇÞ
Ñ?ÁéÐË ×óÏû×ßÇÑÈù ÄéÐÍÀ? ÀÀÐÊ ×?ÍÔÐÈÇÞ hostÈ? Ñ?ÍÓ×â
Ì? ÐæÄé:
Allow from apache.org
Ø?ÍÊÖ?ÈýÐÜ ÐÜ É?ÐêÏ-À? ÀÀÀÕÃ? ÐÜ É?ÐêÏ-ÇÞ ÃÅÃ?Èù Ñ?ÁéÐË
×óÏû×áÄé. ÁçÇÅÌ- ÐÜ ÀöÏü foo.apache.org
ÄÒ
×èÄ÷Å×Àý, fooapache.org
ÄÒ ×èÄ÷Å×Ñ? ÎÚÄÒÄé.
ÐÜ ÌÃÑ?ÐË Ë÷Ïû×ßÈù ÎÖÖÔÔÅÄÒ HostnameLookups
Ñ?ÍÓÎþ ÌÃÑ?À?
À?ÀøÎ?ÐÜ Õ?Æ?ÐÜÎ?Ö? IP ÑæÌâÈ? ÀÅÑ?Àý ÑïÊÉ-Ï? DNS ÀÛË?ÐË
×áÄé. Ñÿ, Ø?ÍÊÖ?ÈýÐË Ó?ÁòÐ?×è IP ÑæÌâÈ? Ï?DNS ÀÛË?ÐË ×á
ØÔ, ÄéÍÓ Ø?ÍÊÖ?ÈýÐÈÇÞ ÀÛË?×ßÏ? Ï?ÇÅ IP ÑæÌâÏÝ ÐßÔÅ×ßÄÒÑ?
Ø?ÐÞ×áÄé. ÀñÀ?ÀÅ ÀÀÀý Ø?ÍÊÖ?ÈýÐÜ ÌÃÑ?À?ÏÅ ×èÄ÷×ßÈù, Ñ?ÁéÐË
×óÏû×áÄé.
Allow from 10.1.2.3
Ñ?ÁéÐË ×óÀÅ×ßÄÒ Ø?ÍÊÖ?Ð× IP ÑæÌâ
Allow from 10.1
Ì-ÊúÃçÖ?Ï?Õ?ÇÞ Ñ?×á×ßÁòÐ?×è IP ÑæÌâ ÎåÐ× 1ÏÅÌ- 3 ÉéÐÜÖ?.
Allow from 10.1.0.0/255.255.0.0
ÃçÖ?Ï?Õ? a.b.c.dÏÝ ÃíÈÕÍÊÕ? w.x.y.z. Ä? ÌÌÉà×ßÀä Ì-ÊúÃçÖ?Ï?Õ?ÇÞ Ñ?×á×âÆ? Ë÷Ïû×áÄé.
Allow from 10.1.0.0/16
ÎåÐ× ÀöÏüÏÝ ÀÀÑ?ÈÈ, Ë?Ð? nnnÀà ÊåÖ? À?ÐÜ 1ÐÞ ÃíÈÕÍÊÕ?È? Ë÷Ïû×áÄé.
ÈÆÑ?ÈÇ ÌÌÀÅÑ? ÏÉÄÒ Ñ?Ø?Ø? ÅÏÐß×á Ø?ÍÊÖ?ÅùÐË Ñ?Ô?×áÄé.
ÄéÐÍÀ? ÀÀÐÜ IPv6 ÑæÌâÏÝ IPv6 Ì-ÊúÃçÖ?Ï?Õ?È? Ñ?Ñ?×â Ì?ÅÅ ÐæÄé:
Allow from 2001:db8::a00:20ff:fea7:ccea
Allow from 2001:db8::a00:20ff:fea7:ccea/10
Allow
Ñ?ÍÓÎþ ÎÖÁäÈåÖ?Ð× ÌÌÉ?ÒÀ
×?ÍÔÐÊ Ø?ÀöÊ?Ì? Ð?É?ÏÅ Å?Æ? Ñ?ÁéÐË
Ñ?Îþ×áÄé. Allow from env=env-variable
ÐË
Ë÷Ïû×ßÈù, env-variable Ø?ÀöÊ?Ì?ÀÅ Ñ?Ð×ÅØ ÀöÏü
Ñ?ÁéÐË ×óÀÅ×áÄé. mod_setenvif
ÀÅ Ñ?À?×ßÄÒ
Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÏ? Õ?Æ?ÐÜÎ?Ö? ÏôÓËÐ× Ö?ÌÊÏÅ Å?Æ? ÐêÐ?ÇãÀä
Ø?ÀöÊ?Ì?È? ÌÃÑ?×â Ì? ÐæÄé. ÁçÇ?É×ÇÞ ÐÜ Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÏ?
Õ?Æ?ÐÜÎ?Ö? User-Agent
(ÊúÆ?ÏüÐ? ÑÎÇ?),
Referer
, ÄéÈ? HTTP ÏôÓË ×üÄ?ÏÅ Å?Æ? Ñ?ÁéÐË
×óÀÅ×â Ì? ÐæÄé.
SetEnvIf User-Agent ^KnockKnock/2\.0 let_me_in
<Directory /docroot>
Order Deny,Allow
Deny from all
Allow from env=let_me_in
</Directory>
ÐÜ ÀöÏü user-agent É?ÐêÏ-ÐÜ KnockKnock/2.0
ÐÈÇÞ
ÍÓÐë×ßÄÒ ÊúÆ?ÏüÐ?Ð× Ñ?ÁéÐÊ ×óÏû×ßÀý, Ã?ÈãÑ?ÄÒ È?ÅÞ ÀÕÊÞ×áÄé.
ÌÃÈý: | Ì-É? Ñ?ÁéÐË ÀÕÊÞ×â Ø?ÍÊÖ?È? Ñ?Ñ?×áÄé |
---|---|
É?É: | Deny from all|host|env=env-variable
[host|env=env-variable] ... |
Ë÷ÏûÐõÌâ: | directory, .htaccess |
Override ÏÙÌ×: | Limit |
Ë?ÕÒ: | Base |
È?Åò: | mod_authz_host |
ÐÜ Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÏ? Ø?ÍÊÖ?Èý, IP ÑæÌâ, Ø?ÀöÊ?Ì?ÏÅ Å?Æ?
Ì-É? Ñ?ÁéÐË Ñ?×á×â Ì? ÐæÄé. Deny
Ñ?ÍÓÎþÐ× ÎÖÁäÈåÖ?ÄÒ Allow
Ñ?ÍÓÎþÏÝ ÅÏÐß×ßÄé.
ÌÃÈý: | ÁòÊËÐ?ÐÈÇÞ Ñ?ÁéÐË ×óÏû×âÑ? ÀÕÊÞ×âÑ? Ï?ÊÞÏÝ
Allow ÏÝ Deny
ÓÃÈ?Ì?Ì-È? Ñ?×áÄé. |
---|---|
É?É: | Order ordering |
ÁòÊËÀ?: | Order Deny,Allow |
Ë÷ÏûÐõÌâ: | directory, .htaccess |
Override ÏÙÌ×: | Limit |
Ë?ÕÒ: | Base |
È?Åò: | mod_authz_host |
Order
Ñ?ÍÓÎþÄÒ ÁòÊËÐ?ÐÈÇÞ Ñ?ÁéÐË
×óÏû×âÑ? ÀÕÊÞ×âÑ? Ï?ÊÞÏÝ Allow
ÏÝ Deny
Ñ?ÍÓÎþ ÓÃÈ?Ì?Ì-È?
Ñ?×áÄé. orderingÐÊ ÄéÐÍ Ñï ×ßÃ?ÐÜÄé
Deny,Allow
Deny
Ñ?ÍÓÎþÈ? Allow
Ñ?ÍÓÎþ ÊÈÄé ÈåÐ? ËüÖüÊËÄé. ÁçÈ?Àý ÁòÊËÐ?ÐÈÇÞ Ñ?ÁéÐË ×óÏû×áÄé.
Deny
Ã?
Allow
Ñ?ÍÓÎþÏÅ
×èÄ÷Å×Ñ? ÎÚÄÒ Õ?Æ?ÐÜÎ?Ö?Ð× Ñ?ÁéÐË ×óÏû×áÄé.Allow,Deny
Allow
Ñ?ÍÓÎþÈ? Deny
Ñ?ÍÓÎþ ÊÈÄé ÈåÐ?
ËüÖüÊËÄé. ÁçÈ?Àý ÁòÊËÐ?ÐÈÇÞ Ñ?ÁéÐË ×óÏû×ßÑ? ÎÚÄÒÄé.
Deny
Ã?
Allow
Ñ?ÍÓÎþÏÅ
×èÄ÷Å×Ñ? ÎÚÄÒ Õ?Æ?ÐÜÎ?Ö?Ð× Ñ?ÁéÐË ÀÕÊÞ×áÄé.Mutual-failure
Deny
ÈåÇßÏÅÄÒ ÎØÃ?ÏÐÀý Allow
ÈåÇßÏÅÈÈ Ã?ÏÐÄÒ
Ø?ÍÊÖ?ÈÈ Ñ?ÁéÐË ×óÏû×áÄé. Order Allow,Deny
ÏÝ
ÀÀÐÊ ÐßÐË ×ßÁòÆ?É?ÏÅ Ë÷Ïû×ßÑ? ÎÚÄÒÄé.ÕÀÏ?ÅõÄÒ ÍÀ×?ÇÞÈÈ ÁÈÊà×áÄé; Ë÷ÐÜÏÅ À?ÉùÐÜ ÐæÐÈÈù
ÎØÅØÄé. È?Å÷ ÀöÏü Allow
ÏÝ Deny
È?ÅÞ ËüÖüÊÍÐË
ÈýÍÙ×ßÆ?.
ÎÖÇÅ ÏÉÏÅÌ- apache.org ÅÅÈîÐÞÐ× È?Å÷ Ø?ÍÊÖ?Ð× Ñ?ÁéÐÊ ×óÏû×ßÑ?ÈÈ, ÄéÈ? Ø?ÍÊÖ?ÄÒ È?ÅÞ ÀÕÊÞ×áÄé.
Order Deny,Allow
Deny from all
Allow from apache.org
ÎÖÇÅ ÏÉÏÅÌ- foo.apache.org ×ßÐ?ÅÅÈîÐÞÏÅ ÐæÄÒ Ø?ÍÊÖ?ÈÈ ÀÕÊÞ×ßÀý, apache.org ÅÅÈîÐÞÏÅ ÐæÄÒ Ø?ÍÊÖ?ÄÒ È?ÅÞ Ñ?ÁéÐË ×óÏû×áÄé. ÁòÊËÐ?ÐÈÇÞ Ñ?ÁéÐË ÀÕÊÞ×ßÁòÆ?É?ÏÅ apache.org ÅÅÈîÐÞÏÅ Ìã×ßÑ? ÎÚÄÒ Ø?ÍÊÖ?ÄÒ Ñ?ÁéÐË ÀÕÊÞ×áÄé.
Order Allow,Deny
Allow from apache.org
Deny from foo.apache.org
ÉíÄûÇÞ Ð?Ð× Order
È?
Deny,Allow
ÇÞ Ê?Àö×ßÈù, È?Å÷ Ø?ÍÊÖ?Ð× Ñ?ÁéÐË
×óÏû×áÄé. ÌÃÑ?ÖÔÐßÏÅÌ- Ñ?ÍÓÎþÀÅ Ã?ÏÐÄÒ Ì?Ì-ÏÝ À?ÀøÎ?ÐÜ
Allow from apache.org
È? Ñ?Ðß ÈÆÑ?ÈÇÏÅ ÓÃÈ?×ßÏ?
Deny from foo.apache.org
Ð× ØÏÀ?È? É?ÍÓ×ßÁò
Æ?É?ÐÜÄé. Æ×, ÁòÊËÐ?ÐÈÇÞ Ñ?ÁéÐË ×óÀÅ×ßÉ×ÇÞ
apache.org
ÅÅÈîÐÞÏÅ Ìã×ßÑ? ÎÚÄÒ Ø?ÍÊÖ?ÅÅ È?ÅÞ
Ñ?ÁéÐË ×óÀÅ×áÄé.
Order
Ñ?ÍÓÎþÄÒ ÁòÊËÐ?ÐÈÇÞ Ñ?ÁéÐË
×óÏû×âÑ? ÀÕÊÞ×âÑ?È? Ñ?×ßÁòÆ?É?ÏÅ Allow
Ã? Deny
Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÑ?
ÎÚÎÖÅÅ Ñ?ÁéÀÅÄÙ Ï?ÊÞÏÅ ÏÅ×òÐË ÑèÄé. ÏÉÈ? ÅùÎþ,
<Directory /www>
Order Allow,Deny
</Directory>
ÄÒ ÁòÊËÐ?ÐÈÇÞ Ñ?ÁéÐË ÀÕÊÞ×ßÁòÆ?É?ÏÅ
/www
Å?ÇÊÕôÈ?ÏÅ Äû×á È?Å÷ Ñ?ÁéÐË ÀÕÊÞ×áÄé.
Order
Ñ?ÍÓÎþÀÅ Ñ?×ßÄÒ Ñ?Áé Ñ?ÍÓÎþ
ÓÃÈ?Ì?Ì-ÄÒ ×èÄ÷ Ì-É?ÌÃÑ? ÓÃÈ?ÄìÀøÏÅÈÈ ÏÅ×òÐË ÑèÄé. Ñÿ,
Order
Ñ?ÍÓÎþ ÌÃÑ?À? À?ÀøÎ?ÐÜ <Location>
ÌÍÌ× ÎØÏÅ
ÐæÄÒ Allow
Ã?
Deny
Ñ?ÍÓÎþÄÒ
<Directory>
ÌÍÌ×ÐÜÃ? .htaccess
ÖÔÐßÏÅ ÐæÄÒ Allow
ÏÝ Deny
Ñ?ÍÓÎþÈ? È?ÅÞ ÓÃÈ?×á
ØÔÏÅ ÓÃÈ?×áÄé. ÌÃÑ? ÌÍÌ×ÅùÐÜ Àñ×å×ßÄÒ ÉöÉÏÅ Äû×èÌ-ÄÒ ÎþÆËÀä Directory, Location, Files
ÌÍÌ×ÐÜ ÅÏÐë×ßÃ? É?Ì-È? Ò?Àý×ßÆ?.