ãªãããã¥ã¼ã¹ã¨ããã£ããããã«æ¸ãããã¨æã£ã¦ã¾ãããã¨ããããããããã®ããã°
apacheã§ãã¼ããã©ã³ãµã¼ã®è¨å®ã¡ã¢ : ã²ãããï¼ ãªã¼ãã³SNS
ã²ãããï¼ ãªã¼ãã³SNS (ã²ãããï¼ ãªã¼ãã³SNS) æ稿è
,
@ 2006-11-14 05:26:00
apacheã§ãã¼ããã©ã³ãµã¼ã®è¨å®ã¡ã¢
Livejournalã®æ¬å®¶ã使ã£ã¦ããperlbalãå
¥ãã¦ã¿ããã
ç§é100ã¢ã¯ã»ã¹ãè¶
ããã¨çªç¶æ»ãããã¨ããã¨ããä¸å
·åã®åå ãæ´ã¿ãããªãã£
ã¤ãã§ãªã®ã§ãã¡ãã£ã¨è©¦ãã¦ã¿ããã¨æã£ã¦ããã
apacheã®ã½ããã¦ã§ã¢ãã¼ããã©ã³ãµã¼ã試ãã¦ã¿ããããã¨ã¯è¨ã£ã¦ãã
è¤æ°ã®ãµã¼ãããªãã®ã§ãã¾ã å®ç¨ã¯åºæ¥ãªããã ãã©ã
1è¡å¢ããã ãã§å¯¾å¿ã§ããã¯ããªã®ã§è¨å®ã ãããã
apache2.23ããä¸è¨ã§configure
./configure --enable-proxy --enable-cache --enable-disk-cache --enable-rewrite
ãã£ãã·ã¥ç¨ã®ãã£ã¬ã¯ããªãä½ã
mkdir /usr/local/apache2/cache
chown daemon /usr/local/apache2/cache
chgrp daemon /usr/local/apache2/cache
/usr/loca/apache2/conf/httpd.conf
ã«ä¸è¨ãå
¥å
<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot /usr/local/apache2/cache
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
</IfModule>
ProxyRequests Off
ProxyPreserveHost On
#ProxyVia On
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(\w+)\.asks\.jp
RewriteRule ^/(.*)$ balancer://mycluster/$1 [P]
<Proxy balancer://mycluster>
BalancerMember http://210.135.97.9 loadfactor=10
</Proxy>
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Location>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
# ProxyPass / http://210.135.97.9/
ProxyPassReverse / http://210.135.97.9/