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.
¼³¸í: | ¼¹ö ¼³Á¤¿¡ ´ëÇÑ Á¾ÇÕÀûÀÎ Á¤º¸¸¦ º¸¿©ÁØ´Ù |
---|---|
»óÅÂ: | Extension |
¸ðµâ¸í: | info_module |
¼Ò½ºÆÄÀÏ: | mod_info.c |
mod_info
¸¦ »ç¿ëÇÏ·Á¸é httpd.conf
ÆÄÀÏ¿¡ ´ÙÀ½°ú °°ÀÌ Ãß°¡ÇÑ´Ù.
<Location /server-info>
SetHandler server-info
</Location>
ÀÌ·¸°Ô ¼³Á¤Çϸé
http://your.host.example.com/server-info
¿¡
Á¢±ÙÇÏ¿© ¼¹ö¿¡ ´ëÇÑ Á¤º¸¸¦ º¼ ¼ö ÀÖ´Ù.
Çѹø ¼¹ö°¡ mod_info
¸¦ ÀоîµéÀ̸é, µð·ºÅ丮º°
¼³Á¤ÆÄÀÏ(¿¹¸¦ µé¾î, .htaccess
)À» Æ÷ÇÔÇÑ
¸ðµç ¼³Á¤ÆÄÀÏ¿¡¼ ÀÌ Çڵ鷯 ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ´Ù.
±×·¡¼ »çÀÌÆ®¿¡ º¸¾È°ü·Ã ¹®Á¦°¡ µÉ ¼ö ÀÖ´Ù.
ƯÈ÷ ÀÌ ¸ðµâÀº ½Ã½ºÅÛ °æ·Î, »ç¿ëÀÚ¸í/¾ÏÈ£, µ¥ÀÌÅͺ£À̽º À̸§°ú °°ÀÌ ¿©·¯ ¾ÆÆÄÄ¡ ¸ðµâÀÇ ¼³Á¤Áö½Ã¾î¿¡ ±â·ÏÇÑ ¹Î°¨ÇÑ Á¤º¸¸¦ À¯ÃâÇÒ ¼ö ÀÖ´Ù. ±×·¡¼ ÀÌ ¸ðµâÀº Ç×»ó ÁÖÀÇÇØ¾ß Çϸç ÅëÁ¦µÈ ȯ°æ¿¡¼¸¸ »ç¿ëÇØ¾ß ÇÑ´Ù.
´ÙÀ½°ú °°ÀÌ mod_authz_host
¸¦ »ç¿ëÇÏ¿©
¼¹ö ¼³Á¤ Á¤º¸¿¡ ´ëÇÑ Á¢±ÙÀ» Á¦ÇÑÇÒ ¼ö ÀÖ´Ù.
<Location /server-info>
SetHandler server-info
Order allow,deny
# ÀÚ½ÅÀ¸·Î ºÎÅÍ Á¢±Ù Çã°¡
Allow from 127.0.0.1
# Ãß°¡·Î, ±Ùó¿¡ ÀÖ´Â ¿öÅ©½ºÅ×À̼ÇÀ¸·Î ºÎÅÍ Á¢±Ù Çã°¡
Allow from 192.168.1.17
</Location>
±âº»ÀûÀ¸·Î ¼¹ö Á¤º¸¿¡´Â »ç¿ëÇÏ´Â ¸ðµâ ¸ñ·Ï°ú ¸ðµâº°·Î ¸ðµâÀÌ ÀÌÇØÇÏ´Â Áö½Ã¾î ¼³¸í, ¸ðµâÀÌ ±¸ÇöÇÑ ÈÅ(hook), ÇöÀç ¼³Á¤¿¡¼ »ç¿ëÇÑ Áö½Ã¾î Á¤º¸°¡ ÀÖ´Ù.
server-info
¿äû¿¡ ÁúÀǹ®ÀÚ¿À» ºÙ¿©¼ ¼³Á¤
Á¤º¸¸¦ ´Ù¸£°Ô º¼ ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î,
http://your.host.example.com/server-info?config
´Â
¸ðµç ¼³Á¤Áö½Ã¾î¸¦ º¸¿© ÁØ´Ù.
?<module-name>
?config
?hooks
?list
?server
mod_info
´Â ¿ø·¡ ¼³Á¤ÆÄÀÏÀ» ÀÐÁö ¾Ê°í
ÀÌ¹Ì ÀоîµéÀÎ ¼³Á¤ Á¤º¸¸¦ Âü°íÇÏ¿© Á¤º¸¸¦ º¸¿©ÁØ´Ù. ¼³Á¤À»
ÆĽÌÇÏ´Â ¹æ¹ý¶§¹®¿¡ ´ÙÀ½°ú °°Àº ¸î°¡Áö ÇÑ°è°¡ ÀÖ´Ù.
ServerRoot
, LoadModule
, LoadFile
°ú °°Àº Áö½Ã¾î°¡
¿©±â¿¡ ÇØ´çÇÑ´Ù.Include
, <IfModule>
, <IfDefine>
°ú °°ÀÌ
¼³Á¤ÆÄÀÏ ÀÚü¸¦ Á¶Á¤ÇÏ´Â Áö½Ã¾î¸¦ º¸¿©ÁÖÁö ¸øÇÑ´Ù.
±×·¯³ª ¾È¿¡ ÀÖ´Â ¼³Á¤Áö½Ã¾î´Â º¸¿©ÁØ´Ù..htaccess
ÆÄÀÏ¿¡ ÀÖ´Â ¼³Á¤Áö½Ã¾î¸¦ º¸¿©ÁÖÁö ¸øÇÑ´Ù.<Directory>
¿Í
°°Àº ¹üÀ§Á¦ÇÑ Áö½Ã¾î´Â º¸¿©ÁÖÁö¸¸,
mod_info
´Â ¸¶Ä¡´Â </Directory>
ÀÇ ÁÙ¹øÈ£¸¦
¾Ë ¼ö ¾ø´Ù.mod_perl
°ú °°ÀÌ Á¦»ïÀÚ°¡ ¸¸µç ¸ðµâÀÇ
Áö½Ã¾î¸¦ º¸¿©ÁÖÁö ¸øÇÒ ¼ö ÀÖ´Ù.¼³¸í: | ¸ðµâ¿¡ ´ëÇÑ Ãß°¡ Á¤º¸¸¦ server-info Çڵ鷯°¡ º¸¿©ÁÖµµ·Ï Ãß°¡ÇÑ´Ù |
---|---|
¹®¹ý: | AddModuleInfo module-name string |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ® |
»óÅÂ: | Extension |
¸ðµâ: | mod_info |
Áö¿ø: | ¾ÆÆÄÄ¡ 1.3 ÀÌÈÄ |
module-name ¸ðµâ¿¡ ´ëÇÑ Ãß°¡ Á¤º¸·Î stringÀÇ ³»¿ëÀ» HTML·Î º¸¿©ÁØ´Ù. ¿¹¸¦ µé¾î,
AddModuleInfo mod_deflate.c 'See <a \
href="http://www.apache.org/docs/2.2/mod/mod_deflate.html">\
http://www.apache.org/docs/2.2/mod/mod_deflate.html</a>'