Apache HTTP Server Version 2.5
¼³¸í: | ÆÄÀÏ ¼ÒÀ¯ÀÚ¸¦ ÀÌ¿ëÇÑ ±ÇÇѺο© |
---|---|
»óÅÂ: | Extension |
¸ðµâ¸í: | authz_owner_module |
¼Ò½ºÆÄÀÏ: | mod_authz_owner.c |
Áö¿ø: | ¾ÆÆÄÄ¡ 2.1 ÀÌÈĺÎÅÍ |
ÀÌ ¸ðµâÀº HTTP ÀÎÁõ¿¡ »ç¿ëÇÑ »ç¿ëÀÚ ¾ÆÀ̵ð(À¥ »ç¿ëÀÚ
¾ÆÀ̵ð)¸¦ ¿äûÇÑ ÆÄÀÏÀÇ ÆÄÀϽýºÅÛ ¼ÒÀ¯ÀÚ/±×·ì°ú ºñ±³ÇÏ¿©
ÆÄÀÏÀÇ Á¢±Ù±ÇÇÑÀ» ºÎ¿©ÇÑ´Ù. ¿©±â¼ »ç¿ëÀÚ¸í°ú ¾ÏÈ£´Â À̹Ì
mod_auth_basic
À̳ª
mod_auth_digest
°°Àº ÀÎÁõ¸ðµâÀÇ È®ÀÎÀ»
°ÅÃÆ´Ù. mod_authz_owner
´Â Require
Áö½Ã¾îÀÇ ´ÙÀ½ µÎ ¾Æ±Ô¸ÕÆ®,
file-owner
¿Í file-group
À» ó¸®ÇÑ´Ù:
file-owner
jones
¶ó¸é, À¥À» ÅëÇØ ÆÄÀÏ¿¡ Á¢±ÙÇÏ´Â »ç¿ëÀÚµµ
¸¶Âù°¡Áö·Î jones
À̾î¾ß ÇÑ´Ù.file-group
mod_authz_groupfile
À̳ª
mod_authz_dbm
°ú °°Àº ±×·ì µ¥ÀÌÅͺ£À̽º¿¡
ÀÖ°í, À¥ »ç¿ëÀÚ¸íÀÌ ÇØ´ç ±×·ì¿¡ ¼ÓÇØ¾ß ÇÑ´Ù. ¿¹¸¦ µé¾î,
¿î¿µÃ¼Á¦°¡ ¿äûÇÑ ÆÄÀÏÀ» accounts
(½Ã½ºÅÛ)
±×·ìÀÌ ¼ÒÀ¯ÇÏ°í ÀÖ´Ù¸é, ±×·ì µ¥ÀÌÅͺ£À̽º¿¡
accounts
¶ó´Â ±×·ìÀÌ ÀÖ°í ¿äû¿¡ »ç¿ëÇÑ À¥
»ç¿ëÀÚ¸íÀÌ ±× ±×·ì¿¡ ¼ÓÇØ¾ß ÇÑ´Ù.mod_authz_owner
°¡ ½ÇÁ¦·Î ÆÄÀϽýºÅÛ¿¡
ÀÖÁö ¾Ê´Â ÀÚ¿øÀ» (Áï, °¡»ó ÀÚ¿ø) ±ÇÇѺο©ÇÑ´Ù¸é,
Á¢±ÙÀ» °ÅºÎÇÑ´Ù.
ƯÈ÷ ³»¿ëÇù»óÇÑ "MultiViews" ÀÚ¿øÀ» ±ÇÇѺο©ÇÏÁö ¾Ê´Â´Ù.
ÀÌ ¸ðµâ¿¡´Â Áö½Ã¾î°¡ ¾ø½À´Ï´Ù.
¾ÆÆÄÄ¡ À¥¼¹ö¸¦ ¿î¿µÇÏ´Â ´ÙÁß»ç¿ëÀÚ ½Ã½ºÅÛ¿¡¼ °¢ »ç¿ëÀÚ°¡
~/public_html/private
¿¡ ÀÚ½ÅÀÇ ÆÄÀÏÀ» ÀúÀåÇÑ´Ù°í
°¡Á¤ÇÏÀÚ. ¸ðµç À¥ »ç¿ëÀÚ¸íÀ» ÀúÀåÇÏ´Â AuthDBMUserFile
µ¥ÀÌÅͺ£À̽º°¡ ÀÖ°í, ¿©±â¿¡ ÀúÀåµÈ »ç¿ëÀÚ¸íÀº ¼¹ö¿¡¼
½ÇÁ¦ ÆÄÀÏÀ» ¼ÒÀ¯ÇÏ´Â ½Ã½ºÅÛ »ç¿ëÀÚ¸í°ú µ¿ÀÏÇÏ´Ù. ÀÌ °æ¿ì
¾Æ·¡ ¼³Á¤Àº ÆÄÀÏ ¼ÒÀ¯ÀÚ¿¡°Ô¸¸ Á¢±ÙÀ» Çã¿ëÇÑ´Ù. »ç¿ëÀÚ
jones
´Â ÆÄÀÏÀ» jones
°¡ ¾Æ´Ñ
smith
°¡ ¼ÒÀ¯ÇÏ°í ÀÖ´Â ÇÑ
/home/smith/public_html/private
¿¡ ÀÖ´Â ÆÄÀÏ¿¡
Á¢±ÙÇÒ ¼ö ¾ø´Ù.
<Directory /home/*/public_html/private>
AuthType Basic
AuthName MyPrivateFiles
AuthBasicProvider dbm
AuthDBMUserFile /usr/local/apache2/etc/.htdbm-all
Satisfy All
Require file-owner
</Directory>
À§¿Í »óȲÀÌ ºñ½ÁÇÏÁö¸¸ ¿©·¯¸íÀÌ
~/public_html/project-foo
¿¡ ÇÁ·ÎÁ§Æ® ÆÄÀÏÀ»
°øÀ¯ÇÑ´Ù°í °¡Á¤ÇÏÀÚ. ÆÄÀϵéÀº ½Ã½ºÅÛ ±×·ì foo
°¡
¼ÒÀ¯Çϸç, ¸ðµç À¥ »ç¿ëÀÚ¸í°ú »ç¿ëÀÚ ±×·ìÀ» ±â·ÏÇÏ´Â AuthDBMGroupFile
µ¥ÀÌÅͺ£À̽º°¡ ÀÖ´Ù. Áï, ÃÖ¼ÒÇÑ foo
¶ó´Â
±×·ì¿¡ ±¸¼º¿øÀÌ ÀÖ´Ù. jones
¿Í
smith
°¡ ¸ðµÎ ±×·ì foo
ÀÇ
±¸¼º¿øÀ̶ó¸é, µÑ ¸ðµÎ project-foo
µð·ºÅ丮¿¡
Á¢±ÙÇÒ ¼ö ÀÖ´Ù.
<Directory /home/*/public_html/project-foo>
AuthType Basic
AuthName "Project Foo Files"
AuthBasicProvider dbm
# combined user/group database
AuthDBMUserFile /usr/local/apache2/etc/.htdbm-all
AuthDBMGroupFile /usr/local/apache2/etc/.htdbm-all
Satisfy All
Require file-group
</Directory>