Apache
tl;dr LimitRequestFieldSize ã¨ã¯ æåã試ã æ¤è¨¼ç°å¢ LimitRequestFieldSize ã 100 ã«è¨å®ãã¦ã¿ã ã¡ãã£ã¨ã ã Apache ã®ã½ã¼ã¹ã³ã¼ãããªã¼ãã£ã³ã° LimitRequestFieldSize ã®ããã©ã«ãå¤ã¯ ä»¥ä¸ tl;dr ã®ã§ã¼ã 㧠LimitRequestFieldSize ã«ã¤ãã¦èª¿â¦
tl;dr ãã¤ã³ãããã ã¡ã¢ æ¶æ¸¬ãããªè¨æ¸¬ãã curl 㧠smtp SMTP ã¨ã®ä¼è©± æå 㧠SMTP ãµã¼ãã¼ãèµ·å curl ã§ã¡ã¼ã«ãéä¿¡ãã¦ã¿ã trdsql ã«ã¤ã㦠ãã°ã SQL ã©ã¤ã¯ã«æ¤ç´¢åºæ¥ã ãã°ã®ç¨æ æ¤ç´¢ ä»¥ä¸ tl;dr WEB+DB PRESS Vol.116 ã®è¨äºãèªãã§ã¿ãâ¦
ã¢ããã¼ã·ã§ã³ ããããã㨠ãã®è¨äºã§æ¸ããªãã㨠æ¤è¨ å®è£ å種 mod_dumpio mod_mruby mod_security mod_security ã«ãã POST ãªã¯ã¨ã¹ãã®ãã®ã³ã° mod_security ã«ã¤ã㦠試ããç°å¢ æ¤è¨¼ã¢ããªã±ã¼ã·ã§ã³ mod_security ã®ã¤ã³ã¹ãã¼ã« POST ãã¼ã¿â¦
ï¼è¶ ã¡ã¢ï¼mod_mruby ã使ã£ã¦ã©ã³ãã ã«ã¹ãã¼ã¿ã¹ã³ã¼ããè¿ãç°å¢ãä½ã
tl;dr ãã°ç£è¦ãã¼ã«ã®åä½ç¢ºèªã®çºã« Apache 㨠mod_mruby ã使ã£ã¦ã©ã³ãã ã«ã¹ãã¼ã¿ã¹ã³ã¼ããè¿ãç°å¢ãä½ã£ã¦ã¿ãã memo åè https://github.com/matsumoto-r/mod_mruby http://qiita.com/matsumotory/items/7121d6cce728125e5ce2 mruby ã³ã¼ã $ câ¦
Elasticsearch ã§ããã¼ãã¼ã¿ãã»ãã ã¨æã£ã¦èª¿ã¹ãã apache-loggen ã¨ãããã¼ã«ããããããã®ã§è©¦ãã¦ã¿ãã apache-loggen ã¨ã¯ Apache ã®ããã¼ãã°ãåºåãã¾ã Apache ã®ããã¼ãã°ãåºåãç¶ãã gem ã®ããã§ãã http://mt.orz.at/archives/20â¦
å¼ãç¶ã ååã®è¨äºãæ¸ããå¾ãéæ»ã§ @matsumotory ãããããé£çµ¡é ããããã¤ã£ï¼ mod_mrubyã®ãã°ï¼ä¸ã§å¼ã³åºãã¦ããmrbgemã®ãã°ï¼ã§ãããæ£è¦è¡¨ç¾ä½¿ããããã«ææ°çã§æ´æ°ãã¦ããã¾ããã / âmod_mruby ã§ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ããå¤æãã¦ã¢ã¯ã»â¦
ã¯ããã« mod_mruby ãåãããç°å¢ãä½ããã®ã§ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ããå¤æãã¦ã¢ã¯ã»ã¹å ãæ¯ãåãã¦ã¿ã åè Apacheã®mod_rewriteãmod_mrubyã«ãã£ã¦ç¡ããäºãã§ããã Apacheã«ãããã¼ãã£ã«ãã¹ãæ§ç¯ã¬ã·ã mod_mrubyç·¨ mruby ããæ£è¦è¡¨ç¾ãæ¶ãâ¦
ããã¦è¿½è¨ ãªã㨠mod_mruby ã®ã¤ã³ã¹ãã¼ã«ããã¥ã¡ã³ãã«ãç´¹ä»ãã¦é ãã¾ããï¼ mod_mrubyãngx_mrubyãDockerã§buildããæ¹æ³ãå ¬éãã¦ä¸ãã£ãã®ã§ãInstallãã¼ã¸ã«æ²è¼ãã¾ãããhttp://t.co/EszTx8MaUA http://t.co/xBaonCe3Nn thanks @inokara @hâ¦
ã¯ããã« ååã¨è©±ãã¦ã㦠mod_mruby ã§çãä¸ãã£ãå¾ã§ mod_rewrite çãªãã¨ã mod_mruby ã§è©¦ãããã¦ããã®æºåã¨ã㦠mod_mruby 㨠Apache ãåã Dockerfile ãä½ã£ã ã¨ããããç®æ¡æ¸ãã§ããã¾ãã [追è¨]ã¿ã¤ãã«ãä¿®æ£ãã¾ãã [追è¨]ç¾å¨ãä½â¦
ã¯ããã« mod_rewrite 㧠SetEnvIf ã使ãã¨æ¯ãåãå¦çãã¡ãã£ã¨æã£ãã®ã§ã¡ã¢ ã¹ããã©ã¨ãã以å¤ã®æ¯ãåã SetEnvIf å©ç¨åå¤ èªåã¯ä»¥ä¸ã®ããã«è¨å®ãã¦ããã # iPhone 㨠iPod 㨠iPad ã¯... RewriteCond %{HTTP_USER_AGENT} "iPhone" [NC,OR] Reâ¦
ã¯ããã« Dockerfile ãæ¸ãä¸ã§æ©ãã§ããã®ã docker run -d ${container/image} ã§ã³ã³ãããèµ°ãããéã«ã³ã³ããå ã«ã»ããã¢ãããã Apache2 çã®ãµã¼ãã¹ãèµ·åãããæ¹æ³ããºããªè§£ããªã...ã®ã§ã¨ããããå¹¾ã¤ãã®ãµã¼ãã¹ã§è©¦ãã¦ã¿ã¦èµ·åæ¹æ³ã®â¦
ã¯ããã« mod_proxy_balancer ã®æ¯ãåãæåã«ã¤ãã¦èª¿ã¹ã mod_proxy_balancer ã® failonstatus ã®æåã«ã¤ãã¦ã調ã¹ã åè Apache ã¢ã¸ã¥ã¼ã« mod_proxy_balancer mod_proxy_balancerã§ç¹å®ã®ã¬ã¹ãã³ã¹ã³ã¼ããæ¤ç¥ãããæ¹æ³ æ¤è¨¼ç°å¢ ç°å¢ 以ä¸ã®ãâ¦
ã¯ããã« Apache ã® mod_proxy ã mod_proxy_balancer ãéç¨ããæã®ã¡ã¢ Debian ã Ubuntu 㧠mod_proxy ã mod_proxy_balancer ãæå¹ã«ãã a2enmod ã³ãã³ãã使ã£ã¦ proxy 㨠proxy_balancer 㨠proxy_http ãæå¹ã«ããã sudo a2enmod proxy sudo a2â¦
ã¯ããã« jenkis ã apache ã®ãªãã¼ã¹ãããã·ï¼mod_proxyï¼é ä¸ã§åãããã åè Running Jenkins behind Apache 対å¦ã®ãµã㪠起åæã®å¼æ°ãä¿®æ£ã㦠jenkins ã®èµ·åãã¹ãä¿®æ£ãã èµ·åæã®å¼æ°ã¯ JENKINS_ARGS ã«ã¦æå®å¯è½ Debian 系㯠/etc/defaultâ¦
ã¯ããã« ããã±ã¼ã¸ã§ã¤ã³ã¹ãã¼ã«ãã apache2 ã«å種ã¢ã¸ã¥ã¼ã«ãçµã¿è¾¼ãã«ã¯ a2enmod ã使ã ã¢ã¸ã¥ã¼ã«ãçµã¿è¾¼ãã«ã¯ a2enmod ã¨ãã perl ã¹ã¯ãªããã使ãã¨è¯ãã a2enmod ${ã¢ã¸ã¥ã¼ã«å} æå¾ã« ç¥ãããã£ã
ã¯ããã« å æ¥åå ãã第2å ã³ã³ããåä»®æ³åã®æ å ±äº¤æä¼ï¼ æ±äº¬ã®ä¸ã§ @matsumotory ãããç´¹ä»ããã¦ãã mod_mruby ã試ãã¦ã¿ããã¨æãã ã¨ãããã試ãã¨ããæã«ã¯ docker ãã¨ã¦ã便å©ã ãªã¼ã¨ãããã¨ã§ããã¡ãã®ã³ã³ããã¤ã¡ã¼ã¸ã使ã£ã¦è©¦ããâ¦
æ¦è¦ Apache ãã©ã® MPM ã§åãã¦ãããç¥ããã memo 以ä¸ã®ã³ãã³ãã§ç¢ºèªå¯è½ã apachectl -V | grep "MPM:" Prefork ã®å ´åã以ä¸ã®ãããªçµæã¨ãªãã Server MPM: Prefork å¤å... httpd -V | grep "MPM:" ã§ãã¤ã±ãã ã¤ã±ãã