Code Archive Skip to content Google About Google Privacy Terms
ãã¾ã¾ã§ãªãã¼ã¹ãããã·ã®è¨å®ãããããã£ã¦ããªãã¦ããã§ã«åãã¦ãããµã¼ãã®è¨å®ãè¦ããè¦ã¾ãã§ä½¿ãåãã¦ãããã¡ããã¨ç解ãããã¨æã£ã¦ãããã¥ã¢ã«ãèªã¿ç´ããããã£ã¨ããã£ããè¨å®ã®æ¹æ³ (How) ãããã£ããã¨ä»¥ä¸ã«ããªãããæ¸ãå¿ è¦ããããã¨ããçç± (Why) ãç解ã§ããã®ãå¬ãããä¹ ãã¶ãã«ãããã£ãï¼ãã¨å«ã³ãããªã£ããæåãå¿ããªããã¡ã«ãæãåºããããã«ãæ¸ãã¦ããã mod_proxy - Apache HTTP ãµã¼ã ãã¼ã¸ã§ã³ 2.2 ã Apache ã®ãããã·é¢é£ã®ããã¥ã¢ã«ã mod_proxy ã使ããã¨ã«ãªãã 大äºãªãã£ã¬ã¯ãã£ãã¯ã ProxyPass 㨠ProxyPassReverse ã®ãµãã¤ã ProxyPass ããããªãã¼ã¹ãããã·ãããä¸ã§ã®ã»ã¨ãã©ãã¹ã¦ã®ãã¨ããã£ã¦ããããå®ã¯è¦æ £ãã (ã³ãããæ £ãã) è¨å®ã§ã¯ãã®ãã£ã¬ã¯
æ¬æ¥ã¯ Google Gears é¢é£ã®ããã²ã¨ã¤ã®ãã¿ãæ¸ããã¨æã£ãã®ã§ãããéã«åããªãã£ãã®ã§æè¿ä»äºã§ä½¿ã£ã Apache ã®ãªãã¼ã¹ãããã·æ©è½ã®è¨å®æ¹æ³ãªã©ããç´¹ä»ãã¾ãããªãã¼ã¹ãããã·ã¯ãç¹å®ã®ãã£ã¬ã¯ããªä»¥ä¸ã¸ã®ãªã¯ã¨ã¹ããä»ã® Web ãµã¼ãã¼ã«ä¸ç¶ããæ©è½ã§ãã LAN å ã®è¤æ°ã®ãã·ã³ã§ç¨¼åãã¦ãã Web ãµã¤ããã²ã¨ã¤ã®ã°ãã¼ãã« IP ã§å ¬éãããã Apache 以å¤ã® Web ãµã¼ãã¼ï¼Rails ã§ãã使ããã mongrel ã¨ãï¼ã Apache ã® Web ãµã¤ãã«çµ±åãããã¨ããç°¡åã«ã§ãã¾ãã Web ãµã¤ããæè»ã«æ§ç¯ããããã«ãè¦ãã¦ããã¨ä¾¿å©ã§ããã åææ¡ä»¶ Apache ã®ãªãã¼ã¹ãããã·æ©è½ãå©ç¨ããããã«ã¯ã mod_proxy ãçµã¿è¾¼ãã Apache ãå¿ è¦ã§ããé常㮠Linux ãã£ã¹ããªãã¥ã¼ã·ã§ã³ãªã©ã§ã¯ããã©ã«ã
俺ã®èããæé«ã®Wikiã·ã¹ãã mod_wikiã¯è»½éãé«éãCLIãã¬ã³ããªãªGitãã¼ã¹ã®Wikiã·ã¹ãã ã§ãã ç¹å¾´gitã«ããå±¥æ´ç®¡çMarkdownè¨æ³ã«ããæ¸å¼Pure C (apache module)mod_wiki ã¯ãããªäººã«ãªã¹ã¹ã¡ã§ãWEBãã©ã¦ã¶ã使ããã«emacsãvimãªã©ããæ°ã«å ¥ãã®ããã¹ãã¨ãã£ã¿ã§ç·¨éãããRDBã使ããããªãææ¸ãSCMã§ç®¡çããããããã¦gitã好ãã½ã¼ã¹ã³ã¼ãhttps://github.com/hamano/apache-mod-wiki ãã«ã% ./autogen.sh % ./configure --with-apache=<APACHE_DIR> \ --with-discount=<DISCOUNT_DIR> \ --with-libgit2=<LIBGIT2_DIR> --with-clearsilver=<CLEA
æ¢åWEBãµã¤ããIPv6対å¿ã«ããã«ã¯ï¼ãè²ã ã¨èª¿æ»ãã¦ã¿ã¾ããã ä»å¹´ã®å¾åã«ã¯IPv4ã¢ãã¬ã¹ãæ¯æ¸ããã¨ãããã¨ã§, ãã£ã¨å ã®ãã¨ã¨æã£ã¦ãããããããã«æ¥ã¦ãã¾ãã¾ãããã åºæ¬ç¾è¡ã®ãµã¤ãã¯IPv4ãã¼ã¹ã§åãã¦ããã¨æãã¾ãããapacheçä¸ã§å½ããã°ã®ããã«ãµã¼ãéç¨ãã¦ããå ´åã«å½±é¿ããªããå¿é ãªæ¹ãå¤ãã®ã§ã¯ãªãã ããããã¨ãããã¨ã§èª¿ã¹ã¦ã¿ã¾ããã IPv6ã¨ã¯ï¼ ã¾ããIPv6ã£ã¦ã©ããããã®ãï¼å人çã«ç¥èãææ§ãªé¨åãå¤ãã£ãã®ã§æ¹ãã¦èª¿ã¹ã¦ã¿ã¾ãã IPv6 - Wikipedia ã¯ãããã¨ã42ååãä¸éã®IPv4ãæ¡å¼µãã¦ãç´340æ¾(340å ã®1å åã®1å å)ã¾ã§æ±ããããã«ããã¨ããã¾ãã ããã ãããã°æ¯æ¸ã¨ã¯ç¡ç¸ã§ããã IPv4 ã§ã¯ã192.0.2.1ãã¿ãããªãã®ã ã£ãã®ããIPv6ã«ãªãã¨ã2001:0db8:bd05:01d2:28
[追è¨ï¼] æå¾ã§èª¬æãã¦ããproxy cacheã®è¨å®ãä¿®æ£ãã¾ããã [追è¨ï¼] nginx proxy cacheã§ãã£ãã·ã¥ããªãå ´åã®å¦çãå¤æ´ãã¾ããã [追è¨ï¼] ã¹ãã¼ããã©ã³ãæºå¸¯ã§é²è¦§ããæã«ãã£ãã·ã¥ããªãè¨å®ã追å ãã¾ããã ã¯ãã㫠大ãããªé¡åã§ãããä»åã¯WordPressåä½ãéãããã®ã§ã¯ãªãããã¼ã¿ãã¼ã¹ãWebãµã¼ããªã©ã®èª¿æ´ãã¾ãnginxã®proxy cacheæ©è½ã使ã£ã¦éããã話ã«ãªãã¾ãã ãµã¤ãã®æ§æã«ãã£ã¦ã¯ãproxy cacheã¯ä½¿ããªãããããã¾ãããã使ããªãã¦ã5åç¨åº¦éããããã¨ã¯ã§ãã¾ããã®ã§ãåèã«ãã¦ããã ããã°ã¨æãã¾ãã ä»åè¡ããã¥ã¼ãã³ã°ä¸è¦§ DBãæé©åãããã©ã°ã¤ã³ãå°å ¥ãã APCãå°å ¥ãã¦PHPãéããã MySQLãéããã éãWordPressãã©ã°ã¤ã³ãå¤ã nginx+FastCGIã«ãã W
å æ¥ãWeb ãµã¼ãåå¼·ä¼ #2 ãéããã¾ãããå 容ã¯ãApache ã®ãã¥ã¼ãã³ã°ã¨ãããã¨ã§ãåå ãããã£ãã®ã§ãããä»ã®äºå®ããã£ã¦åå ã§ãã¾ããã§ããã ããã§ãåãå人çã«è¡ã£ã¦ãã Apache ã®ãã¥ã¼ãã³ã°ãç´¹ä»ãããã¨æãã¾ããæåãã¹ã©ã¤ãã§ä½æããããã¨æã£ãã®ã§ãããããã°ã«ã¾ã¨ããã»ãããããããªã®ã§ããã°ã«ã¾ã¨ãã¦ããã¾ãã ã¾ãã大åæã¨ã㦠Apache ããã¥ã¼ãã³ã°ããããã§ã大äºãªãã¨ã¯ãã® Apache ãæä¾ãã Web ãµã¼ãã¹ã®ç¨®é¡ã®ãã£ã¦å¤§ãããã¥ã¼ãã³ã°ããå 容ãç°ãªãã¨ãããã¨ã§ããä¾ãã°ãåç»ã»åçå ±æãµã¼ãã¹ã¨æ ªä¾¡æ å ±ã®ãµã¼ãã¹ãæ¯è¼ããã¨ãå½ç¶ã®ãã¨ãªãã大ãããµã¼ãã¹ã®å 容ãç°ãªãã¾ãããHTTP ã¬ãã«ã§ã¿ãã¨ã¯ã©ã¤ã¢ã³ãããã®ãªã¯ã¨ã¹ãæ°ããã¼ã¿ãµã¤ãºããªã©ãããªãéã£ã¦ãã¾ãã ã§ãã®ã§ãã¾ãã¯èªåãæ±ã£ã¦ããã¦ã§ããµã¼ã
Google ã® Page Speed ã® Apache module ç mod_pagespeed ãã¤ã³ã¹ãã¼ã«ãã¦ãã¡ãã£ã¨ã ãåããè¦ã¦ã¿ãã ã¤ã³ã¹ãã¼ã«ã¯ Ubuntu ã« deb ããã±ã¼ã¸ã§ã $ wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_amd64.deb # sudo dpkg -i mod-pagespeed-beta_current_amd64.debconfig ã¯ããã©ã«ãã§å ¥ããã®ãã®ã¾ã¾ã <IfModule pagespeed_module> SetOutputFilter MOD_PAGESPEED_OUTPUT_FILTER ModPagespeed on ModPagespeedUrlPrefix "http://localhost/mod_p
Apacheã®è¨å®ã§ Order deny,allowã¨ã Satisfy anyã¨ãããªãã ãæå³ãããã人ã®ããã«ãåã¯ãã£ã¨ããã£ã¦ãªãã£ãã åºæ¬ Apacheã®ã¢ã¯ã»ã¹å¶å¾¡ã«ã¯ã ãã¹ãã«ããå¶å¾¡ (Order,Allow,Deny) ã¦ã¼ã¶èªè¨¼ã«ããå¶å¾¡ (Auth*, Require) ã®2éããããã Satisfyã¯ã2éãããã¢ã¯ã»ã¹å¶å¾¡ã®ä¸¡æ¹ãæºããå¿ è¦ããããã©ããã決å®ãããããã©ã«ãã¯Satisfy allãSatisfy anyãªããã©ã¡ããçæ¹æºããã°ããã Order http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order Order deny,allowã¯ãå ¨ã¦ã®ãã¹ãããã®ã¢ã¯ã»ã¹ã許å¯ããã Order allow,denyã¯ãå ¨ã¦ã®ãã¹ãããã®ã¢ã¯ã»ã¹ãæå¦ããã Order d
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}