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.
¼³¸í: | Basic authentication |
---|---|
»óÅÂ: | Base |
¸ðµâ¸í: | auth_basic_module |
¼Ò½ºÆÄÀÏ: | mod_auth_basic.c |
Áö¿ø: | ¾ÆÆÄÄ¡ 2.1 ÀÌÈĺÎÅÍ |
ÀÌ ¸ðµâÀº ÇØ´ç Á¦°øÀÚ(provider)¸¦ »ç¿ëÇÏ¿© »ç¿ëÀÚº°·Î
Á¢±ÙÀ» Á¦ÇÑÇÏ´Â HTTP Basic AuthenticationÀ» Á¦°øÇÑ´Ù.
HTTP Digest Authentication˼ mod_auth_digest
°¡
Á¦°øÇÑ´Ù.
¼³¸í: | ÀÎÁõ°ú ±ÇÇѺο©¸¦ Àú¼öÁØ ¸ðµâ¿¡ ³Ñ°ÜÁÙÁö °áÁ¤ÇÑ´Ù |
---|---|
¹®¹ý: | AuthBasicAuthoritative On|Off |
±âº»°ª: | AuthBasicAuthoritative On |
»ç¿ëÀå¼Ò: | directory, .htaccess |
Override ¿É¼Ç: | AuthConfig |
»óÅÂ: | Base |
¸ðµâ: | mod_auth_basic |
AuthBasicAuthoritative
Áö½Ã¾î¸¦
Off
·Î ¼³Á¤Çϸé ÁÖ¾îÁø »ç¿ëÀÚ ¾ÆÀ̵𿡠ÇØ´çÇÏ´Â
»ç¿ëÀÚ ¾ÆÀ̵𳪠±ÔÄ¢À»
ãÀ» ¼ö ¾ø´Â °æ¿ì ÀÎÁõ°ú ±ÇÇѺο© ¸ðµÎ¸¦ (modules.c
ÆÄÀÏ¿¡¼ Á¤ÀÇÇÑ) Àú¼öÁØ ¸ðµâ·Î ³Ñ°ÜÁØ´Ù. ÁÖ¾îÁø »ç¿ëÀÚ
¾ÆÀ̵𳪠±ÔÄ¢À» ã¾Ò´Ù¸é º¸Å붧¿Í °°ÀÌ ¾ÏÈ£¿Í Á¢±ÙÇã¿ë¿©ºÎ¸¦
°Ë»çÇÏ°í, ½ÇÆÐÇϸé "Authentication Required (ÀÎÁõ ÇÊ¿ä)"
ÀÀ´äÀ» ÇÑ´Ù.
±×·¡¼ ¿©·¯ ¸ðµâÀÇ µ¥ÀÌÅͺ£À̽º¿¡ »ç¿ëÀÚ ¾ÆÀ̵𰡠Àְųª
À¯È¿ÇÑ Require
Áö½Ã¾î¸¦
¿©·¯ ¸ðµâ¿¡ Àû¿ëÇϸé, ù¹ø° ¸ðµâÀÌ »ç¿ëÀÚ¸¦ °Ë»çÇÏ°í,
AuthBasicAuthoritative
¼³Á¤°ú °ü°è¾øÀÌ
Á¢±ÙÀ» ³Ñ±âÁö¾Ê´Â´Ù.
±âº»ÀûÀ¸·Î Á¦¾î¸¦ ³Ñ±âÁö¾Ê°í, ¸ð¸£´Â »ç¿ëÀÚ ¾ÆÀ̵ð¿Í ±ÔÄ¢ÀÎ °æ¿ì "Authentication Required (ÀÎÁõ ÇÊ¿ä)" ÀÀ´äÀ» ÇÑ´Ù. ÀÌ Áö½Ã¾î¸¦ ¼³Á¤ÇÏÁö¾ÊÀ¸¸é ½Ã½ºÅÛÀÌ ¾ÈÀüÇÏ°Ô À¯ÁöµÇ¸ç, NCSA À¥¼¹ö¿Í °°ÀÌ µ¿ÀÛÇÑ´Ù.
¼³¸í: | ÀÌ À§Ä¡¿¡ ´ëÇÑ ÀÎÁõÁ¦°øÀÚ¸¦ ÁöÁ¤ÇÑ´Ù |
---|---|
¹®¹ý: | AuthBasicProvider On|Off|provider-name
[provider-name] ... |
±âº»°ª: | AuthBasicProvider On |
»ç¿ëÀå¼Ò: | directory, .htaccess |
Override ¿É¼Ç: | AuthConfig |
»óÅÂ: | Base |
¸ðµâ: | mod_auth_basic |
AuthBasicProvider
Áö½Ã¾î´Â ÀÌ
À§Ä¡¿¡¼ »ç¿ëÀÚ¸¦ ÀÎÁõÇÒ Á¦°øÀÚ¸¦ ÁöÁ¤ÇÑ´Ù. °ªÀÌ
On
ÀÌ¸é ±âº»Á¦°øÀÚ(file
)¸¦ ¼±ÅÃÇÑ´Ù.
mod_authn_file
¸ðµâÀÌ file
Á¦°øÀÚ¸¦ ±¸ÇöÇϱ⶧¹®¿¡ ¼¹ö¿¡ ÀÌ ¸ðµâÀÌ ÀÖ´ÂÁö È®ÀÎÇؾß
ÇÑ´Ù.
<Location /secure>
AuthBasicProvider dbm
AuthDBMType SDBM
AuthDBMUserFile /www/etc/dbmpasswd
Require valid-user
</Location>
Á¦°øÀÚ´Â mod_authn_dbm
°ú
mod_authn_file
À» Âü°íÇ϶ó.
°ªÀÌ Off
À̸é Á¦°øÀÚ ¸ñ·ÏÀ» Áö¿ì°í ±âº»»óÅ·Î
µ¹¾Æ°£´Ù.