Apache HTTP Server Version 2.2
This document refers to a legacy release (2.2) of Apache httpd. The active release (2.4) 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.
¼³¸í: | ¹®ÀÚÆÄÀÏÀ» ÀÌ¿ëÇÑ »ç¿ëÀÚ ÀÎÁõ |
---|---|
»óÅÂ: | Base |
¸ðµâ¸í: | authn_file_module |
¼Ò½ºÆÄÀÏ: | mod_authn_file.c |
Áö¿ø: | ¾ÆÆÄÄ¡ 2.1 ÀÌÈÄ |
ÀÌ ¸ðµâÀº mod_auth_digest
¿Í
mod_auth_basic
°°Àº ÀÎÁõ¾Õ´Ü¸ðµâÀ» À§ÇØ
ÀÏ¹Ý ¹®ÀÚ ¾ÏÈ£ÆÄÀÏ¿¡¼ »ç¿ëÀÚ¸¦ ã¾Æ¼ ÀÎÁõÇÑ´Ù.
mod_authn_dbm
°ú ±â´ÉÀÌ ºñ½ÁÇÏ´Ù.
mod_auth_basic
À̳ª
mod_auth_digest
¸¦ »ç¿ëÇÒ¶§ AuthBasicProvider
³ª
AuthDigestProvider
ÀÇ
°ªÀ» file
·Î ¼³Á¤Çϸé ÀÌ ¸ðµâÀ» »ç¿ëÇÑ´Ù.
¼³¸í: | ÀÎÁõÇÒ »ç¿ëÀÚ¸í¿Í ¾ÏÈ£ ¸ñ·ÏÀ» ÀúÀåÇÏ´Â ¹®ÀÚÆÄÀϸíÀ» ÁöÁ¤ÇÑ´Ù |
---|---|
¹®¹ý: | AuthUserFile file-path |
»ç¿ëÀå¼Ò: | directory, .htaccess |
Override ¿É¼Ç: | AuthConfig |
»óÅÂ: | Base |
¸ðµâ: | mod_authn_file |
AuthUserFile
Áö½Ã¾î´Â »ç¿ëÀÚ ÀÎÁõ¿¡
»ç¿ëÇÒ »ç¿ëÀÚ¸í¿Í ¾ÏÈ£ ¸ñ·ÏÀ» ÀúÀåÇÏ´Â ¹®ÀÚÆÄÀϸíÀ» ÁöÁ¤ÇÑ´Ù.
File-path´Â ÆÄÀÏ°æ·ÎÀÌ´Ù. Àý´ë°æ·Î¸¦ »ç¿ëÇÏÁö
¾ÊÀ¸¸é ServerRoot
ÀÇ
»ó´ë°æ·Î·Î ó¸®ÇÑ´Ù.
ÆÄÀÏÀÇ °¢ ÁÙ¿¡´Â »ç¿ëÀÚ¸í, ÄÝ·Ð, ÀÎÄÚµùµÈ ¾ÏÈ£°¡ ¼ø¼´ë·Î
³ª¿Â´Ù. ¿©·¯ ÁÙ¿¡¼ µ¿ÀÏÇÑ »ç¿ëÀÚ ¾ÆÀ̵𸦠Á¤ÀÇÇϸé,
mod_authn_file
´Â ù¹ø°·Î ³ª¿À´Â ¾ÏÈ£¸¦
»ç¿ëÇÑ´Ù.
ÄÄÆÄÀÏµÈ ¹èÆ÷º»À̳ª src/support
¿¡ ÀÖ´Â htpasswd µµ±¸´Â HTTP
Basic Authentication¿¡ »ç¿ëÇÒ ¾ÏÈ£ÆÄÀÏÀ» °ü¸®ÇÑ´Ù.
ÀÚ¼¼ÇÑ ³»¿ëÀº manpage¸¦
Âü°íÇ϶ó. ¿ä¾àÇϸé:
Ãʱ⠾ÆÀ̵ð username
À» °¡Áø ¾ÏÈ£ÆÄÀÏ
Filename
À» ¸¸µç´Ù. ¾ÏÈ£¸¦ ¹°¾îº»´Ù:
htpasswd -c Filename username
¾ÏÈ£ÆÄÀÏ Filename
¿¡ username2
¸¦
Ãß°¡Çϰųª ¼öÁ¤ÇÑ´Ù:
htpasswd Filename username2
Å« ¹®ÀÚÆÄÀÏÀ» °Ë»öÇÏ´Â °ÍÀº ¸Å¿ì ºñÈ¿À²ÀûÀÓÀ»
ÁÖÀÇÇ϶ó. »ç¿ëÀÚ°¡ ¸¹´Ù¸é ´ë½Å AuthDBMUserFile
À» »ç¿ëÇؾß
ÇÑ´Ù.
HTTP Digest AuthenticationÀ» »ç¿ëÇÑ´Ù¸é htpasswd µµ±¸·Î ¾ÈµÈ´Ù. ´ë½Å htdigest¸¦ »ç¿ëÇØ¾ß ÇÑ´Ù. Digest Authentication°ú Basic AuthenticationÀ» À§ÇÑ ÀڷḦ °°Àº ÆÄÀÏ¿¡ ¼¯¾î¼ »ç¿ëÇÒ ¼ö ¾øÀ½À» ÁÖÀÇÇ϶ó.
AuthUserFile
ÀÌ À¥¼¹öÀÇ ¹®¼µé
¹Û¿¡ À§Ä¡ÇÔÀ» È®ÀÎÇ϶ó. ÀÌ ÆÄÀÏÀ» º¸È£ÇÒ µð·ºÅ丮 ¾È¿¡
°°ÀÌ µÎÁö ¸¶¶ó. ±×·¸Áö ¾ÊÀ¸¸é, Ŭ¶óÀ̾ðÆ®°¡
AuthUserFile
À» ´Ù¿î·ÎµåÇÒ ¼ö ÀÖ´Ù.