Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
èªé¯ãããsendmail ãApacheçµç±ã§ -f ä»ãã¦fromãå¤æ´ãã¦éã㨠éä¿¡ããã¡ã¼ã«ã®ãããã«ãã®ããã« Message-Id: <2010********.******0**1*214@kyosuke.net> X-Authentication-Warning: kyosuke.net: apache set sender to *******@***.********.ne.jp using -f To: *******@ezweb.ne.jp X-Authentication-Warningãä»å ãããã ã¾ãå½è£ ããã¦ãããããã¾ãããï¼ã¨ ãfromãæ¸ãæãããã¦ããã®ã§ä¿¡é ¼ã§ããªãããç¥ãã¾ããã ãä¸å¯§ã«æãã¦ãããããã§ãããããã§é ä¿¡ããã¨è¿·æã¡ã¼ã«ãã©ã«ãã«ã¶ã¡è¾¼ã¾ãããã ãã£ãªã¢ã«ãã£ã¦ã¯å±ããªããã¨ãããã®ã§ã sendmail.cf ãããã£
ç§ã®èª¿ã¹ãApacheã®ãã¥ã¼ãã³ã°æ¹æ³ã§ã.Apacheã®ããã»ã¹å¨ãã®ãã¥ã¼ãã³ã°ã解説ãã¾ã. Webãµã¼ãã¼ãæ§ç¯ããã ããªãããã®è§£èª¬ã¯é£ã°ãã¦åé¡ããã¾ãã. ãã¥ã¼ãã³ã°ããApacheã¯ãã¼ã¸ã§ã³2ã§preforkã®Apacheãåæã¨ãã¾ã. 使ã£ã¦ããApacheãpreforkãã©ããã¯ãããã®ä»ããã¿ã¦ãã ãã. ãªããç§ã調ã¹ãéãã®äºãªã®ã§ãééã£ã¦ããå ´åãããã¾ã.注æãã¦ãã ãã. 以ä¸ã®é çªã§è§£èª¬ãã¾ã. (1)Apacheã®ããã»ã¹ã«ã¤ãã¦(æ ¨è«) (2)Apacheã®ãã¥ã¼ãã³ã°ãã¤ã³ã (3)Apacheã®ããã»ã¹ã«é¢ãããã£ã¬ã¯ãã£ã (4)è¨å®ä¾ (5)å¤ã®æ±ºãæ¹ (6)ãã®ä» 1.Apacheã®ããã»ã¹ã«ã¤ãã¦(æ ¨è«) ã¾ãã¯æåã«Apacheã®ããã»ã¹ã«ã¤ãã¦ã®åºç¤ç¥èã§ã. ã©ã®ãããªãµã¼ãã¼ã§ãå é¨åä½ã®æ¦è¦ã
åã¨ã³ããªãpound 㨠apache ããã©ã³ã¹ãããã¥ã¼ãã³ã°ããå¿ è¦æ§ã«ã¤ãã¦ãã®ç¶ãã§ããApache2 ã®ãã¥ã¼ãã³ã°ã«ããé«è² è·ï¼å¤§éã¢ã¯ã»ã¹ï¼å¯¾çãèãã¦ã¿ã¾ãã ããã¾ã§ãã¦ãã£ã¨ãããããé«è² è·æã« apache2 ã®ããã»ã¹æ°ã足ãã¦ããªããéçã³ã³ãã³ãã®å¿çæéãé 延ãã¦ããã®ããï¼ã¨ãã仮説ãç«ã¦ããã¨ãã§ãã¾ãããå³è§£ããã¨ãããªæãã§ãã Apache2 ã¯ãã¡ãã worker MPM ã§åä½ããã¦ãã¾ããworker MPM ã£ã¦ãªããï¼ã¨ããæ¹ã¯ããã®ããã°ãèªãã§é ãã¦ããæ¹ã«ã¯ããã£ããããªããã¨æãã¾ãããhttp://httpd.apache.org/docs/2.0/mod/worker.htmlãããããèªãã¨è¯ãã§ãããã ãã®ãã«ãããã»ãã·ã³ã°ã¢ã¸ã¥ã¼ã« (MPM) ã¯ããã«ãã¹ã¬ããã¨ãã«ãããã»ã¹ã®ãã¤ããªããåãµã¼ãã å®è£ ãã¦
è² è·ãã¹ãï¼ã¾ãã¯æ§è½ãã¹ãï¼ã¯ãã·ã¹ãã ãä½ãä¸ããä¸ã§éè¦ãªè¦ç´ ãæã¤ãã¹ãã«ãªãã¾ãã ããããªãããã·ã¹ãã ãæ§ç¯ãã段éã§ã¯ãã¾ããã®è² è·ãããµã¼ãã¼ï¼ã¾ãã¯ãã®ä¸ã§ã®ã¢ããªã±ã¼ã·ã§ã³ãããã«ã¦ã§ã¢ï¼ã®æ§è½ã¨ãããã®ã¯æ°ã«ãã¾ããã éçºã¡ã³ãã¼ã¯ããããæ°å人ã¨ãã£ãã¬ãã«ãå¤ããã·ã¹ãã ã®éçºæ®µéã§ã¯ããã ãã®äººã®ã¢ã¯ã»ã¹ããªããããå®éã®å©ç¨ç¶æ³ã¨ã¯ããªãç°ãªã£ãç°å¢ã§ãåããããOKãã¨ããæãã§æµãã¦ãã¾ããã¡ã§ãã ãã ããããããã¨ãæ°ã«ããã«ã·ã¹ãã ããªãªã¼ã¹ãã¦ã¿ãããä¸å®ã®ãã¼ã¿éã«éãããã¢ããªã±ã¼ã·ã§ã³ãåããªããªã£ããããµã¼ãã¼ãå¿çããªããªã£ããªãã¦äºããã£ãããã¾ãã ãããããã¨ããªãããã«ãããªãªã¼ã¹å¾ã®è² è·ãæ³å®ãããã¹ãããã·ã¹ãã å ¨ä½ã®æ§è½ãäºããã¹ããã¦ããå¿ è¦ãããã¾ãã è² è·ãã¹ãç¨ã®ãã¼ã«ã§å¸è²©ããã¦ãããã®ã¯ã確ãã«ããç´°ããçµæ
muninãã¤ã³ã¹ãã¼ã«ããã¨ãã«ããã©ã°ã¤ã³ã§apacheé¢é£ãã¤ã³ã¹ãã¼ã«ããã¦ããªãã£ãã®ã§ï¼ä»ã®ãµã¼ãã«ã¯ã¡ããã¨ã¤ã³ã¹ãã¼ã«ããã¦ããã®ã«ï¼ãæåã§ã¤ã³ã¹ãã¼ã«ãã¾ããã $ sudo ln -s /usr/share/munin/plugins/apache_accesses /etc/munin/plugins/apache_accesses $ sudo ln -s /usr/share/munin/plugins/apache_processes /etc/munin/plugins/apache_processes $ sudo ln -s /usr/share/munin/plugins/apache_volume /etc/munin/plugins/apache_volumeãããããã°ã©ãã«æ°å¤ã表示ãããªã(-_-ã)ã ãã©ã°ã¤ã³ãåä½ã§å®è¡ãããã $ s
æè¿å¦ç§ã®å人3人ã¨ãµã¼ã/ã»ãã¥ãªãã£ã«ã¤ãã¦ã®åå¼·ä¼ãé±1ã§è¡ã£ã¦ãã¦ãæ¯åä½ã調ã¹ã¦ãããã¨ã«ãªã£ã¦ãããä»å㯠apache ã®è¨å®ã«ã¤ãã¦å°ã調ã¹ã¦ãã¾ãããåå¿è ãã¾ã¨ããã®ã§ééã£ã¦ããé¨åãããããããã¾ããããåå¼·ã®å½¹ã«ç«ã¦ã¦é ããã°å¹¸ãã§ãã httpd.confã¯ã©ãã«ããï¼ æå°éã®httpd.conf 3ã¤ã®ã»ã¯ã·ã§ã³ ã»ã¯ã·ã§ã³1: GlobalEnvironment ã»ã¯ã·ã§ã³2: MainServerConfiguration ã»ã¯ã·ã§ã³3: VirtualHosts ã¢ã¸ã¥ã¼ã«ã®è¿½å å¤é¨è¨å®ãã¡ã¤ã«ã®èªè¾¼ã¿ ãµã¼ããªã½ã¼ã¹ã®ç£è¦æ¹æ³ httpd.confã¯ã©ãã«ããï¼ OSã«ãã£ã¦ç°ãªãã¾ããã以ä¸ã®é層ã«ç½®ãã¦ããå¯è½æ§ãé«ãã§ãã CentOSãFedoraãªã©Red Hatç³» /etc/httpd/conf/ SUSEç³»ãMacOSX /etc/a
ãããã®VPSã§Webãµã¼ããæ§ç¯ããã®ã«ãåèã«ãããã¼ã¸ãã¾ã¨ãã¾ããã ç¸éç¹ãæ¯è¼æ¤è¨ãããã¨ã«ãã£ã¦ãæ¨æºçãªä½æ¥æé ãæ´ãåºãã®ã«å½¹ç«ã¡ã¾ããã æ å ±ãå ¬éãæä¾ãã¦ãã ãã£ãçæ§ã«æè¬ãããã¾ããm(__)m ã2011/5/2 追è¨ã ã¤ã³ã¹ãã¼ã«ä½æ¥ã®ã¾ã¨ããã¼ã¸ãç¨æãã¾ããã â ãããã®VPS ã¤ã³ã¹ãã¼ã«ã¾ã¨ã â主ãªä½æ¥å 容 åºæ¬ã¨ãªãä½æ¥å 容ã¯ãããã©ã«ãã®ã²ã¹ãOSï¼CentOSï¼ã使ã£ãäºä¾ã§ããï¼¼(åå°)ï¼ ã¦ã¼ã¶ã¼ã®è¨å® ã»ç®¡çè ã¦ã¼ã¶ã¼ (root) ã®ãã¹ã¯ã¼ãå¤æ´ ã»ä½æ¥ã¦ã¼ã¶ã¼ã®è¿½å ã»ä½æ¥ã¦ã¼ã¶ã¼ã®ã°ã«ã¼ã追å (wheel) ã»ä½æ¥ã¦ã¼ã¶ã¼ã® sudo è¨±å¯ ã»ä½æ¥ã¦ã¼ã¶ã¼ã®ã³ãã³ãã®ãã¹è¿½å SSHã®è¨å® ã»rootã®ãã°ã¤ã³ç¦æ¢ ã»ãã¹ã¯ã¼ãæ¹å¼ã®ãã°ã¤ã³ç¦æ¢ ã»éµèªè¨¼æ¹å¼ã®ãã°ã¤ã³OK ã»ç§å¯éµã¨å ¬ééµã®ä½æã¨è¨ç½® ã»SSHã®ãã¼ãçª
ãApacheã®æ§é ãã§ãhttpd.confãã®å¤§ã¾ããªæ§é ãç解ã§ããã¨ããã§ãå®éã«ãhttpd.confãã®ç·¨éã®ä½æ¥ã«ç§»ãã¾ããApacheã®ã¤ã³ã¹ãã¼ã«ããå ´æãããconfããã©ã«ããæ¢ãã¦ããhttpd.confããã¡ã¤ã«ãã¡ã¢å¸³ãªã©ã®ããã¹ãã¨ãã£ã¿ã§éãã¦ãã ããããªããããã©ã«ãã§ã¯ãhttpd.confãã¯ã¢ããªã±ã¼ã·ã§ã³ã®é¢é£ä»ãããªããã¦ããªããããããã«ã¯ãªãã¯ã§ã¯éããªãã®ã§æ³¨æãã¦ãã ããããããããããã¡ã¢å¸³ãèµ·åãã¦ãããã¡ã¤ã«ãéãã®ãé¢åãããæ¹ã¯ãé©å½ãªãã©ã«ããéãã¦ããã¼ã«ãâããã©ã«ããªãã·ã§ã³ãâããã¡ã¤ã«ã¿ã¤ããã§ã¢ããªã±ã¼ã·ã§ã³ã®é¢é£ä»ããè¡ã£ã¦ãã ãããå°ããhttpd.confããç·¨éããéãééãã¦è¨è¿°ãã¦ãã¾ãã©ããã©ãããã£ãã®ãããããªããªã£ã¦ãã¾ã£ãå ´åã®ããã«ããã¹ã¯ããããªã©ã«ãhttpd.confããã³ãã¼ãã¦ãã
ããã§ã¯ãApacheã®ãã°ãã«ã¹ã¿ãã¤ãºããæ¹æ³ã«ã¤ãã¦å ·ä½çãªä¾ãã ãã¦ãããªãã説æãã¦ããã¾ããApache ã«éã£ãäºã§ã¯ãªãã®ã§ããããã°ã¯æ´»ç¨ãã¦åãã¦æå³ããªããã®ã§ãè¦ãããªãä¸å¿ è¦ãªãã°ãè¨é²ãã¦ãã£ã¹ã¯ã¹ãã¼ã¹ãå§è¿«ãã¦ããã®ã§ã¯å ãåãããã¾ããããµã¤ãã«ã¨ã£ã¦å¿ è¦ãªãã°ãä¸å¿ è¦ãªãã°ããé©åã«å¤æããæå¹ã«æ´»ç¨ããããã«ãã¦ãã ãããã¾ããApache ã®ã¢ã¯ã»ã¹ãã°ã¯ãã®ã¾ã¾æ¾ç½®ãã¦ããã¨ãä¸ã¶æãããã°ããã«ã®ã¬åä½ã«ã¾ã§éãã¦ãã¾ãã¾ãï¼ãã£ã¨ããã¢ã¯ã»ã¹æ°ã«ãããã¾ããããªã«ãã«ã¹ã¿ãã¤ãºãã¦ããªãç¶æ ã§çè ã®å ´åã¯ãã®ãããï¼ããããªããªãããã«ãããã°ã®ãã¼ãã¼ã·ã§ã³ãããäºãéè¦ã§ãããä¸å¿ è¦ãªæ å ±ã¯ã«ãããããã¨ãã¨ã¦ã大åãªäºãªã®ã§ãå½ãã¼ã¸ãåèã«ãã¦æ¯éãå®è·µãã¦ããã¾ãããã â Apache ã§ã®ãã°ã®æ¦è¦ ã¾ããApache ã®ãã°æå®ã§
ã½ãã詳細説æ Apache çã®HTTPãµã¼ãã¼ãåºåããNCSAå½¢å¼ã®ãã°ãè¦ããã表示ããã½ããã§ãã æå®ããããã°ãã¡ã¤ã«ãèªã¿è¾¼ãã§ãã»ãã·ã§ã³ç¶æ ã解æããæ¥ä»ãã¨ã«ä¸è¦§è¡¨ç¤ºãã¾ãã ã¾ããä»»æã®ã¢ãã¬ã¹ããã©ã«ã群ã«å¯¾ããã¢ã¯ã»ã¹è§£æ ( ãã°è§£æ ) ãè¡ãã¾ãã å種ã®ã¢ã¯ã»ã¹æ å ±ãåºæºã«å¤æ§ãªéè¨ãè¡ããããããç¸äºã«è¿½è·¡ãã¦è¡¨ç¤ºã§ããã®ã§ãç¹å®ã¢ã¯ã»ã¹å ã®åä½è¿½è·¡ãæ¤ç´¢ãµã¤ãã®ç»é²ã»åç §ç¶æ³çã詳細ãã¤åå¥ãªãã°åæãå¯è½ã¨ãã¾ãã IISã®å ´åã§ããconvlog ã§ãã°å½¢å¼ãå¤æããã°ä½¿ç¨ã§ãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}