ab ã§ããã©ã¼ãã³ã¹ãã¹ããè¡ã£ã¦ãããã§ããï¼ãã°ã« GET / HTTP/1.0" 200 643 "-" "Apache/2.2 (internal dummy connection)ã¿ãããªã®ããã¾ã«åºç¾ãã¦ã¾ãããprefork mpm ã使ã£ã¦ãããã§ããï¼ MaxRequestsPerChild ã§ããã»ã¹ãåçæããããããã®ã¿ã¤ãã³ã°ã§ãããï¼éãããï¼ãè¨åããã¦ãããã¼ã¸ããã¾ããªãã®ã§è¬ã®ã¾ã¾ã§ããä¸å¿å®å®³ã¯ãªããããã§ããã è¿½è¨ 2006å¹´07æ28æ¥ id:naoya [apache] åããè¬ãmod_proxy_balancer ã® live check ç¨ãªã¯ã¨ã¹ãããªã¨æã£ã¦ããã ãã©ã ãã¼ï¼ããããã° mod_proxy 使ã£ã¦ã¾ãããã§ãå®éã©ããªãã ããã¨ãããã¨ã§ï¼ä»æ¥ãã¹ã¿ã¼ã¢ãããçµãã¦ã¡ããæã«ãªã£ãã®ã§ã½ã¼ã¹ã追ãããã¦ã¿ã¾ããã
ã¦ã§ããµã¼ãã¹ã§ã¯ãã¢ã¯ã»ã¹ãéä¸ãã¦ããµã¤ããè½ã¡ããã¨ããã®ã¯ããããã話ã§ããç´ç²ã«äººæ°ãåºã¦ã¢ã¯ã»ã¹éä¸ãããªãããµã¼ã管çå´ã®è²¬ä»»ã¨è¨ããã¦ããããããªãã¨æãã¾ããããããbotãF5ã¢ã¿ãã¯ã«ããçªçºçãªéä¸ã¢ã¯ã»ã¹ã§ãè½ã¡ã¦ãã¾ããã¨ããã®ã¯ãéå¶å´ã¨ãã¦ãããã¾ãç´å¾ããããã®ã§ã¯ããã¾ããã ãã®ãããªçªçºçãªã¢ã¯ã»ã¹ã«å¯¾å¿ããããã«ã大éã®ã¢ã¯ã»ã¹ããã¦ããã¯ã©ã¤ã¢ã³ããæ¤åºããåªå 度ãè½ãããã¢ã¯ã»ã¹ç¦æ¢ã«ããæ¹æ³ãªã©ãããã¾ãã ã¨ããããã§ãApacheã¢ã¸ã¥ã¼ã«ã§ãããæ¤åºããããã®mod_dosdetectorãéçºãã¾ããã(ã¡ãªã¿ã«ã³ã¢é¨åã®éçºæéã¯ãApacheã¢ã¸ã¥ã¼ã«ã£ã¦ãã©ãæ¸ããã ã£ããã¨ããç¶æ ããã3æ¥ã§ããã) mod_dosdetectorã¯ãApacheã¢ã¸ã¥ã¼ã«ã¨ãã¦åä½ããã¯ã©ã¤ã¢ã³ãã®IPã¢ãã¬ã¹ãã¨ã«ã¢ã¯ã»ã¹é »åº¦ã測å®ããè¨
ãªãã¼ã¹ãããã·ãªç°å¢ã§ã¯ mod_rpaf 使ã£ãããããã¨ãå¤ãã¨æãã¾ãããããã¯ã¨ã³ãã® apache ã§ã¢ã¯ã»ã¹å¶éãããå ´åã«ã¯ãmod_extract_forwarded ã使ã£ãã»ããè¯ãããã¨ããã話ã ããã¯ã¨ã³ãã® apache 2.0 + mod_rpaf ãªç°å¢ã§ .htaccess ã«ããã¢ã¯ã»ã¹å¶éãããããã¨ãã¦ããæ¥ç¶å ã® IP ã¢ãã¬ã¹ã§ã¯ãªããpound ã® IP ã¢ãã¬ã¹ã§å¶éãããã£ã¦ãã¾ããã¨ããç¾è±¡ã«æ©ã¾ããã¾ãããã§ãã½ã¼ã¹ãçºãã¦ã¿ã㨠mod_rpaf 㯠ap_hook_post_read_request ã§å®è¡ããã¦ããã®ã«å¯¾ããmod_access 㯠ap_hook_access_checker ã§å®è¡ããã¦ãã¾ãããããããap_hook_post_read_request ããã ap_hook_access_checker
ä»ä½ã£ã¦ããã¦ã§ãã¢ããªã§ã¯ -+(A) Apache 2.2 + mod_proxy (ç»åçã®ã¹ã¿ãã£ãã¯ã³ã³ãã³ãåã) +(B) Apache 2.2 + mod_perl (ã¢ããªãµã¤ã)ã¨ããç°å¢ãåä¸ãã¹ãã§åããã¦ãã¾ãã ãã ï¼ãã®ããã«ãªãã¼ã¹ãããã·ãå°å ¥ããã¨ï¼(B) ã®ãã°ãã¡ã¤ã«ã§ã¯ã¢ã¯ã»ã¹ãã¨ããã¹ã¦ 127.0.0.1 ã«ãªã£ã¦ãã¾ãã¾ããï¼ã¢ã¯ã»ã¹ããã IP ã«ãã£ã¦ã¢ããªä¸ã§å¶éãæãããå ´åï¼X-Forwarded-For ããããèªåã§ã¿ã¦å¤æããªãã¦ã¯ãããªããªã£ã¦ãã¾ãï¼é¢åã§ãã ãã®ãããªã¨ãã«æ¥½ã«å¯¾å¦ã§ããã®ã mod_rpaf ã§ãï¼åè: ãªãã¼ã¹ãããã·ãå°å ¥ããéã¯mod_rpaf - drk7jpï¼ããã®ã¢ã¸ã¥ã¼ã«ã使ãã¨ï¼Apache ã® Connection ã¬ã³ã¼ãã®å 容ãæ¹å¤ãã¦ãããã®ã§ï¼ãã°ã«ã¯å¤§å ã®ã¢ãã¬ã¹ãè¨é²ã
mod_proxy_balancerã§ä¸ã大è¦æ¨¡ãµã¼ãã¼éç¨ããã¨ãã®åæ - (1) mod_proxy_balancerã®è¨å®ç·¨ Apache2.2ããããã¼ããã©ã³ã·ã³ã°ããã¦ãããmod_proxy_balancer ã¨ããã¢ã¸ã¥ã¼ã«ãæ¨æºæ·»ä»ã«ãªãã¾ããã ãã®ã¢ã¸ã¥ã¼ã«ããã®ååã®éããApacheã¬ãã«ã§HTTPãªã¯ã¨ã¹ããããã¯ã¨ã³ãã®ãµã¼ãã¼ã«æ¯ãåãããã¨ã§ãã¼ããã©ã³ã·ã³ã°ããã¦ãããã¢ã¸ã¥ã¼ã«ã§ãã Apacheã®å ¬å¼ããã¥ã¡ã³ãã試ãã«å ¥ãã¦ã¿ã人ã®Blogãªã©ã¯æ£è¦ããã¾ãããå®éã®ç¾å ´ã§éç¨ãã¦ããäºä¾ã¨ããã®ã¯ã¾ã ç¡ãããã§ãã ããã§ãå®éã«ãã¼ã¯æã«over 500 request/secã§mod_proxy_balancerãªãµã¼ãã¼ãéç¨ãã¦ããçµé¨ããµã¾ããã¤ã¾ãããç¹ãªã©ãå ¬éãã¦ããããã¨æãã¾ãã ã¾ããmod_proxy_balancerã®
Apache 2.2ã§Webãµã¤ããããã©ã¼ãã³ã¹ã¢ããï¼ ï¼ ææ°Apacheã®æ©è½ã¨è¨å®æ¹æ³æãã¾ã ï¼ é¶´é· é®ä¸ï¼[email protected]ï¼ 2006/3/14 ãã¼ããã©ã³ã¹ã¯ã©ã¹ã¿ã使ã Apacheã«ã¯ãã¬ã¹ãã³ã¹ã®é ããµã¼ãã®ä»£ããã«å¿çãããããã·æ©è½ãæä¾ããã¦ãã¾ããApache 2.0ã§ããé常ã®ãã©ã¯ã¼ããããã·ããã³Webãµã¼ãã®è² è·åæ£ãå¯è½ã«ãããªãã¼ã¹ãããã·ã«å¯¾å¿ãã¦ãã¾ããã Apache 2.2ã§ã¯ãªãã¼ã¹ãããã·æ©è½ãããã«é«ãããã©ãã£ãã¯éããªã¯ã¨ã¹ãåæ°ã«å¿ãããã¼ããã©ã³ã·ã³ã°ãå¯è½ã«ãªã£ã¦ãã¾ãããã¼ããã©ã³ã¹ãããããã¯ã¨ã³ããµã¼ãã¯ãApacheãåèµ·åãããã¨ãªããªã³ï¼ãªãã©ã¤ã³ã«ã§ãã¾ããããã¯ã¨ã³ããµã¼ãããã¦ã³ããå ´åã¯ãèªåçã«ãã®ãµã¼ããåãé¢ãã復æ§å¾èªåçã«å¾©å¸°ãããã¨ãã£ããã¨ãå¯è½ã§ãã â ãã¼ããã©ã³ã¹
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}