ãããã¤ã³ã¹ãã¼ã«ä»£è¡¨ã®ã©ã¤ãããã¯ããã°
Over a post in Google Webmaster Central Blogs Vanessa Fox stated that when your site goes down for maintenance tou should configure your server to return a status of 503 (network unavailable) rather than 200 (successful). This lets Googlebot know to try the pages again later. Searching for how i can make my Apache webserver return the 503 â Service Unavailable status code for a particular site on
Passenger (mod_rails) ãå ¥ããã以ä¸ãæé ã $ sudo yum install gcc-c++ httpd-devel ruby-sqlite3 $ sudo gem install passenger $ sudo passenger-install-apache2-module ã¤ã³ã¹ãã¼ã«ã¯ãã£ãããã ãã次㫠httpd.conf ã«è¿½è¨ããã # Configure for Passenger LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-1.0.4/ext/apache2/mod_passenger.so RailsSpawnServer /usr/lib/ruby/gems/1.8/gems/passenger-1.0.4/bin/passenger-spawn-s
Unix/Linuxç³»OSã®å ´åã§ãè² è·ç£è¦ã®ãã¼ã«ã¨ããã°topãæåã§ãããapacheã®è©³ç´°ã¾ã§ã¯ç£è¦ãããã¨ãã§ãã¾ããã ã¨ãã«ãããç¨åº¦ã®ã¢ã¯ã»ã¹æ°ã®ããWebãµã¤ããéç¨ãããã¨ã®ããæ¹ãªããããã¨æãã¾ãããæ»æã¨æããããããªè² è·ã«åºããããã¨ã¯ããã¨æãã¾ãã ãããªã¨ãã«ãç°¡åã«apacheã®ç¶æ³ã調ã¹ããã¨ãã§ããã®ãapachetopã§ãã ã©ããªã¨ãã«ä½¿ãï¼ apachetopã¨ãããã¨ã§ã使ç¨ããã®ã¯WebServerã§ããã¢ã¯ã»ã¹ãå¤ãã§ãµã¼ãã¼ãé«è² è·ã«ãªã£ã¦ãããªã¼ã¨ããç¨åº¦èªåãªãã«å¤æã§ããã¨ãã«ä½¿ãã¾ãã Debian/Ubuntuã§ããã°ã¤ã³ã¹ãã¼ã«ã¯ç°¡åã # sudo apt-get update # sudo apt-get install apachetop ç°¡åã«ä½¿ã£ã¦ã¿ãã 使ç¨æ¹æ³ãç°¡åã§ãã apachetopã¯apacheã®ã¢ã¯
mod_uploader ã¨ã¯? mod_uploader ã¯ï¼ããããã¢ãããã¼ãã Apache ã®ã¢ã¸ã¥ã¼ã«ã¨ãã¦å® è£ ãããã®ã§ãï¼ä»¥ä¸ã®ãããªç¹é·ãããã¾ãï¼ Apache ã®ã¢ã¸ã¥ã¼ã«ã¨ã㦠C++ ã§è¨è¿°ããã¦ããã®ã§ï¼Perl ã PHP 㧠ä½ãããç©ã«æ¯ã¹ã¦é«éï¼ ç¬èªã®ç°¡æã¹ã¯ãªããè¨èªã«ãããã³ãã¬ã¼ãæ©è½ãããã®ã§ï¼åã³ã³ã㤠ã«ç¡ãã§æ軽ã«è¦ãç®ãå¤æ´å¯è½ï¼ ã¢ãããã¼ãæã®é²æç¶æ³ããªã¢ã«ã¿ã¤ã ã«è¡¨ç¤ºå¯è½ï¼
ã´ã¼ã« è² è·åæ£ã®ããã¤ãã®æ¹æ³ã«é¢ãã¦ç解ãã mod_proxy_balancerã«ããè² è·åæ£ã¯ã©ã¹ã¿ãæ§ç¯ã§ãã åºç¤ç¥èç·¨ åºæ¬çãªè³æ 主ã«ã¯ã©ã¹ã¿ã«ããè² è·åæ£ã®è³æã - Apache ã¢ã¸ã¥ã¼ã« mod_proxy_balancer - mod_proxy_balancerã§ä¸?大è¦æ¨¡ãµã¼ãã¼éç¨ããã¨ãã®åæ - cyano ãã¨ç¤¾å¤ç§è³æã è² è·åæ£ï¼ è¤æ°å°ã®ãµã¼ãã«ã¢ã¯ã»ã¹ãåæ£ãã¦ãåã ã®ãµã¼ãã«ãããè² è·ãæ¸ãããå ¨ä½çã«å¦çã§ããã¢ã¯ã»ã¹ãå¢ãããã¨ã 以ä¸ã®ãããªã¢ããã¼ããããã DNSã©ã¦ã³ãããã³ DNSã§ã²ã¨ã¤ã®ãã¹ãåã«è¤æ°ã®IPã¢ãã¬ã¹ãå²ãå½ã¦ãæ¹æ³ ã·ã³ãã« ããããã¦ã³ãã¦ãããã¹ãã«ãã¢ã¯ã»ã¹ãæ¯ãåãããã¦ãã¾ã åé·åã¨ä½µç¨ã§ãªãã¨ããªãããªï¼ æ©è½ãã¨ã«ãã¹ããåå² ã¦ã§ããµã¼ãã¨DBãµã¼ãã®åå²ï¼åºæ¬éãããä¸å¿ãããè² è·åæ£ï¼
ããã«ã¡ã¯ãnaoya ã§ãã å æ¥ãã¦ãã¦ãå ¬éãã¦ãããµã¼ãã¹ã®ä¸ã«ããã¤ãã®èå¼±æ§ãè¦ã¤ãã£ãããã社å ã§ãèå¼±æ§çºè¦å¤§ä¼ããéå¬ãã¾ããããã®å¤§ä¼ã¯ãäºäººä¸ãã¼ã ã«åããã¦ã¦ãã¦ãå ¬éãã¦ããåãµã¼ãã¹ã®èå¼±æ§ãè¦ã¤ãããã¨ãç®çã¨ãã大ä¼ã§ããçµæã¯ãããã¤ãåãµã¼ãã¹ã«èå¼±æ§ãè¦ã¤ãããããã«ä¿®æ£ãããã¨ãã§ãã¾ããã åã®ãã¼ã ã¯ãã¦ãã¦ã®ãã¼ã ãã¼ã¸ãã©ãããã°ãªã©ç´°ãããµã¼ãã¹ãæ å½ãã¾ããããã®ä¸ã§ãããã¤ãã®ã¦ã§ããµã¼ãã«ã»ãã¥ãªãã£ä¸ãã¾ãè¨å®ãããã¾ããã ä»æ¥ã¯ãã¦ã§ããµã¼ãã®ã»ãã¥ãªãã£åä¸ã®ããã®è¨å®æ¹æ³ã«ã¤ãã¦ã¨ã³ããªãã¾ãããªããã¦ã§ããµã¼ãã¯Apache 2.2ç³»ãåæã¨ãã¦ãã¾ãã ãµã¼ãæ å ±ã®è¡¨ç¤ºããªã ã¦ã§ããµã¼ã(Apache)ã§ã404ãªã©ã®ã¨ã©ã¼ãã¼ã¸ã表示ããã¨ãããããããã¼ã¸ã®ä¸ã«ApacheãOSã®ãã¼ã¸ã§ã³ã表示ããã¾ãããããã£
ã·ã¹ãã ã¡ã³ããã³ã¹ã®ãããä¸æãµã¼ãã¹ãåæ¢ãããã¨ããCapistranoã§ç°¡åã«ã¡ã³ããã³ã¹ç»é¢ã表示ãããäºãã§ãã¾ãã ã¾ãã¯ã.htaccessãç·¨éãã¦ã RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /system/maintenance.html [L] 1 : %{DOCUMENT_ROOT}/system/maintenance.html ãåå¨ãã 2 : ä¸ã¤ãèªåèªèº«ï¼å®è¡ãã¡ã¤ã«èªèº«ï¼ã maintenance.html ã§ãªããã°ã 3 : URLã/system/maintenance.html ã«æ¸ãæããã ã¨ããè¨å®ããã¾ããï¼â»çªå·ã¯è¨å®ãã¡ã¤ã«ã®è¡
æè¿ãé¨ã®æ¥ãç¶ãã¦èªè»¢è»éå¤ãã§ãã¦ããªã naoya ã§ãã ä»æ¥ã¯ãå é±ããããããã©ãèµã«å°å ¥ãã Apache 㧠mod_expires 㨠mod_rewrite ã使ã£ãã¦ã§ããµã¼ãã¸ã®ã¢ã¯ã»ã¹ãæ¸ããæ¹æ³ãç´¹ä»ãã¾ãã é常ã®ã¦ã§ããµã¼ãã¯ãæ´æ°ããã¦ããªããªãªã¼ã¹ã«å¯¾ãã¦ã¢ã¯ã»ã¹ããã¨ãã¹ãã¼ã¿ã¹ã³ã¼ã 304 ã¨If-Modified-Since ããããã¤ãã¦å¿çãã¼ã¿ãè¿ãã¾ãããCSS ã JavaScript ãªã©æ¯è¼çæ´æ°é »åº¦ã®å°ãªããã¡ã¤ã«ã«å¯¾ãã¦ãæ¯åå¿çãè¿ãã®ã¯ã¦ã§ããµã¼ãããè¦ãã¨ç¡é§ãªã¢ã¯ã»ã¹ã§ãã Apache ã® mod_expires 㨠mod_rewrite ã使ãã¨ããã®ç¡é§ãªã¢ã¯ã»ã¹ããã©ã¦ã¶ãã£ãã·ã¥ãæå¹æ´»ç¨ã«ãããã¨ã«ãããéçãªãã¡ã¤ã«ã«å¯¾ããã¢ã¯ã»ã¹ãæ¸ãããã¨ãã§ãã¾ãã ã¾ããä»çµã¿ãã説æããã¨ãã¨ã¦ãåç´ã§ mod
â 1. ä¸æ¸å»ºã¦ã¿ã¤ã ãã®ã¢ããªç¨ã«å°ç¨ã®ãã·ã³ãæºåã§ããã±ã¼ã¹ãä¾ãã°ãã¢ã¯ã»ã¹æ°ãå°ãªãβãªãªã¼ã¹æãªã©ã¯ mongrel ãç´æ¥80ãã¼ãã§éç¨ãããã¨ãããã ãããããã¦ãè² è·ã®å¢å ãã¾ãã¯ãã«ãã³ã¢ãæ´»ããã¨ãã次ã®æ®µéã§ãcluster åãã mongrel ãæ±ãå¿ è¦ã«è¿«ãããå ´åããã®ã¿ã¤ãã«ãªãããã®å ´åãããã³ãã®ä»äºã¯ããã¯(Rails)ã¸ã®å²ãæ¯ãã ãã ãããã®ããã«ãããã Apache2 ãæã¡åºãã®ã¯ä»°ã ããã¨æãããããããªãããããªäººã«ã奨ããããã®ã Pound ãµã¼ãã ããããªã Apache ãã話ãé¸ãã¦ãã¾ããããã®ã±ã¼ã¹ã ã¨ãªã¢ã«ã§ã奨ãã§ããã Pound + mongrel Pound ã¯ãªãã¼ã¹ãããã·ç¨ã®Webãµã¼ãã§ãããç¹åãã¦ããã ããã£ã¦ãå¿ è¦æä½éãã¤ç´æçã§ç°¡åãªè¨å®ã§æ¸ããããæ·å± ãä½ãã®ãé åã ãããã§ãã¦ããã¸
æè¿ãããã°ã©ãã³ã°ç³»ã®ãããã¯ã«ã¤ãã¦å ¨ç¶æ¸ãã¦ããªãã£ãã®ã§ãä»æ¥ã¯ä¹ ãã¶ãã« Ruby On Rails ã«ã¤ãã¦æ¸ãã¾ãã ä»åã¯è¤æ° Rails ç°å¢ã VirtualHost ã§ã¯ãªããLocation ã®éãã«ãã£ã¦å®è£ ããæ¹æ³ã«ã¤ãã¦ã§ãã èæ¯ å¤ãã® Ruby On Rails ã¢ããªã±ã¼ã·ã§ã³ã解説ããæç« ã§ã¯ãvirtual host æ©è½ãå©ç¨ãã¦ã/ ã® Location ã Ruby On Rails ã¨ãã¦ä½¿ããã¦ãããã¨ãåæã«èª¬æããªããã¦ãã¾ãã ããããªãããDNS ã®è¨å®ã®æ¨©éãæã£ã¦ããªãå ´åãªã©ã§ã¯ãvirtual host ã®å©ç¨ã¯ç¾å®çãªè§£ã§ã¯ããã¾ãããä»ã«ãhttp://localhost:3000/ ãªã©ã¨ããã¼ãçªå·æå®ã§è¡ãã¨ããæ¹æ³ãããã¾ããããã¼ãçªå·æå®ã¯ãã¾ã好ãã§ã¯ãªãæ¹ãããã£ãããã§ãããããããã人ãã¡ã®ããã«ã
Apacheãã»ãã¥ã¢ã«ããã¢ã¸ã¥ã¼ã«ã§ãmod_securityãã¨ããã®ãããããã§ãããããWeb Application Firewall (WAF)ã¨ãããã®ã«åé¡ãããä»çµã¿ãªã®ã§ãããé常ã«æ©è½ãå¼·åãããããGETãPOSTãã¬ã¹ãã³ã¹ãå«ãINã¨OUTã®å ¨ãªã¯ã¨ã¹ãï¼HTTPSå«ãï¼ã«å¯¾ãã¦ãã£ã«ã¿ãªã³ã°å¯è½ãé常ã§ã¯è¨é²ãããªãPOSTã®ãã°ãè¨é²å¯è½ã ã§ããã®æ©è½ã使ãã°ãã©ãã¯ããã¯ã¹ãã ããµã¼ãå´ã§å§æ«ã§ããã®ã§ãPHPãªã©ãåãã¦å¤å®ããåã«å¦çã§ãããã©ãã¯ããã¯ã¹ãã ã«ããè² è·ã軽ããªãã¨ããããã è¨å®ã®è©³ç´°ãªã©ã¯ä»¥ä¸ã®éããmod_securityç¨ã®ãã©ãã¯ãªã¹ãããã¦ã³ãã¼ãã§ããã®ã§è¨å®ãç°¡åã§ãã å ¬å¼ãµã¤ãã¯ä»¥ä¸ã ModSecurity (mod_security) - Open Source Web Application Firewal
his document 㯠http://www.apache.org/docs/mod/mod_rewrite.html ã«ãã Apache Group ã«ãããªãªã¸ãã«ã® mod_rewrite ããã¥ã¢ã«ãè£è¶³ãããã®ã§ããã¦ã§ããã¹ã¿ã¼ãæ®æ®µãå®éã«ç´é¢ãã¦ããå ¸åç㪠URL-based ã®åé¡ããmod_rewrite ã§ã©ã®ããã«è§£æ±ºããããè¨è¿°ãã¦ãã¾ããURL ã® rewriting ruleset ãè¨å®ãããã¨ã«ãã£ã¦ããããã®åé¡ã解決ããæ¹æ³ã詳述ãã¦ããã¾ãã Table Of Contents ã¯ãã㫠解決ç URL ã¬ã¤ã¢ã¦ã Canonical URLs Canonical Hostnames DocumentRoot ã®ç§»å ãã£ã¬ã¯ããªã®ã¹ã©ãã·ã¥ã®è§£æ±º åä¸ãª URL é ç½®ããã ã¦ã§ãã»ã¯ã©ã¹ã¿ ç°ãªãã¦ã§ããµã¼ãã¸ã®ãã¼ã ã»ãã£ã¬ã¯ããªã®ç§»
ZFS ãå®è£ ããã Solaris 10 6/06 ï½·ï¾ââââââ(ï¾âï¾)ââââââ !!!! ã£ã¦ãã¨ã§ï¼ãã§ãããã§ããï¼ ã¨ã¯ããï¼ç¾ç¶ã§ã¯ ZFS é åããç´æ¥ãã¼ãã£ã¦ã®ã¯ã§ããªãã¦ï¼ ZFS Mountroot ã£ã¦ã®ã¯ããã¾ããï¼ãããç¾ç¶ã§ã¯ UFS é åãå¿ è¦ï¼ï¼ ã¾ãã¤ã³ã¹ãã¼ã©ã ZFS é åãä½æããããã§ããï¼/usr çã® OS ã®ä¸»è¦é åã ZFS ã«ããã®ãã¡ãã£ã¨é¢åãªããã§ãï¼ ãããã®ç¹ãä»å¾è§£æ±ºãããã®ããªï¼ã¨ã¯æãã¾ããï¼ ä»ã®ã¨ããç¡é£ã«éããªã / ã /usr ãªã© OS ã®ä¸»è¦é å㯠UFS 使ã£ã¦ï¼ ãã以å¤ã®é¨åã§åå¥ã« ZFS é åãä½ãã®ãè¯ãããã§ãï¼ ãã£ã¨ãï¼å人çã«ã¯ Express (Nevada) 㧠/ ã ã㯠UFS ã«ãã¦ã¾ããï¼ /usr, /var, /opt, /export/home ãªããã ZF
URL ãæä½ããããã®ã¹ã¤ã¹è£½ã®ã¢ã¼ãã¼ãã¤ããmod_rewrite ã¸ãããã! ãã®ã¢ã¸ã¥ã¼ã«ã¯ãï¼æ£è¦è¡¨ç¾ãã¼ãµã«åºã¥ãï¼ã«ã¼ã«ãã¼ã¹ã® æ¸ãæãã¨ã³ã¸ã³ã使ããè¦æ±ããã URL ãé©å®æ¸ãæãã¾ãã ãµãã¼ãããã«ã¼ã«ã®æ°ãããã³åã«ã¼ã«ãé©ç¨ããéã®ã«ã¼ã«æ¡ä»¶ ã®æ°ã«å¶éã¯ãªããæ¬å½ã«ãã¬ãã·ãã«ã§ãã¤ãã¯ãã«ãª URL æä½ ã¡ã«ããºã ãæä¾ãã¾ãããã® URL æä½ã«å ç«ã¡ã次ã®ããã«ãããã㪠è©ä¾¡ãè¡ãªããã¨ãã§ãã¾ãããã¨ãã°ãµã¼ãå¤æ°ãç°å¢å¤æ°ãHTTP ãããã ã¿ã¤ã ã¹ã¿ã³ããããã«å¤é¨ãã¼ã¿ãã¼ã¹ã®æ¤ç´¢çµæã¾ã§ãè©ä¾¡ã®å¯¾è±¡ã¨ãã¦ã å種ã®ãã©ã¼ãããã使ã£ãç²åº¦ã®é«ã URL ãããã³ã°ãå®ç¾ã§ãã¾ãã ãã®ã¢ã¸ã¥ã¼ã«ã¯ããµã¼ãåä½ã®ã³ã³ããã¹ã (httpd.conf) ããã³ãã£ã¬ã¯ããªåä½ã®ã³ã³ããã¹ã (.htaccess) ã«ãã㦠(PATH-
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}