Apache HTTP Server Version 2.2
This document refers to the 2.2 version of Apache httpd, which is no longer maintained. The active release is documented here. If you have not already upgraded, please follow this link for more information.
You may follow this link to go to the current version of this document.
¼³¸í: | ÆÄÀÏ ¼ÒÀ¯ÀÚ¸¦ ÀÌ¿ëÇÑ ±ÇÇѺο© |
---|---|
»óÅÂ: | 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>
¼³¸í: | ±ÇÇѺο©¸¦ Àú¼öÁØ ¸ðµâ·Î ³Ñ°ÜÁÙÁö ¿©ºÎ |
---|---|
¹®¹ý: | AuthzOwnerAuthoritative On|Off |
±âº»°ª: | AuthzOwnerAuthoritative On |
»ç¿ëÀå¼Ò: | directory, .htaccess |
Override ¿É¼Ç: | AuthConfig |
»óÅÂ: | Extension |
¸ðµâ: | mod_authz_owner |
AuthzOwnerAuthoritative
Áö½Ã¾î¸¦
Á÷Á¢ Off
·Î ¼³Á¤ÇÏ¸é ´ÙÀ½°ú °°Àº °æ¿ì »ç¿ëÀÚ
±ÇÇѺο©¸¦ (modules.c
ÆÄÀÏ¿¡¼ Á¤ÀÇÇÑ) Àú¼öÁØ
¸ðµâ·Î ³Ñ°ÜÁØ´Ù.
file-owner
¸¦ »ç¿ëÇϸé ÆÄÀϽýºÅÛ ¼ÒÀ¯ÀÚ¸¦
¾Ë ¼ö ¾ø°Å³ª ÁÖ¾îÁø À¥ »ç¿ëÀÚ¸í°ú ´Ù¸¥ °æ¿ìfile-group
À» »ç¿ëÇϸé ÆÄÀϽýºÅÛ ±×·ìÀ»
¾Ë ¼ö ¾ø°Å³ª ÁÖ¾îÁø À¥ »ç¿ëÀÚ¸íÀÌ ±¸¼º¿øÀÌ ¾Æ´Ñ °æ¿ì.¶Ç, °ªÀ» Off
·Î ¼³Á¤Çϸé
file-owner
¿Í file-group
À» °áÇÕÇÏ¿©,
µÑ Áß Çϳª¸¸ ¸¸Á·Çصµ Á¢±ÙÀ» Çã°¡ÇÑ´Ù.
±âº»ÀûÀ¸·Î Á¦¾î¸¦ ³Ñ±âÁö¾Ê°í, ¸ð¸£´Â ±×·ìÀÇ °æ¿ì ÀÎÁõ
ÇÊ¿ä ÀÀ´äÀ» ÇÑ´Ù. ÀÌ Áö½Ã¾î¸¦ Off
·Î ¼³Á¤ÇÏÁö¾ÊÀ¸¸é
½Ã½ºÅÛÀÌ ¾ÈÀüÇÏ°Ô À¯ÁöµÇ¸ç, NCSA À¥¼¹ö¿Í °°ÀÌ µ¿ÀÛÇÑ´Ù.