mongrelï¼lighttpd
æ¨æ¥ã®æ¥è¨ã®ã³ã¡ã³ãã§
# secondlife ãéçãªãã¡ã¤ã«ã¯ lighttpd or apache, åçãªé¨å㯠mongrel ã§ãã£ã¦ã®ã管çã楽ã§ãªã¹ã¹ã¡(ãã¸ã¬ã¹ç¦æ¢ï¼)ã
# secondlife ãã¤ã Webrick ãï½ï½ï¼ã¨ãããã mongrel ã«ãã¦ã¿ããï¼ã¤ã³ã¹ãã¼ã«ãèµ·åãç°¡åã ããã
ã¨id:secondlifeå çã«æãã£ãã®ã§ãéçãªãã¡ã¤ã«ã¯lighttpdã§ãåçãªé¨åã¯mongrelã§è¿ãããã«ããã
ææ°çã®mongrelã¯Ruby1.8.4ãå¿ è¦ã ã£ãã®ã§Debianã®unstableã®rubyãã¨ã£ã¦ãã¦å ¥ããã
ã¤ã³ã¹ãã¼ã« $ sudo gem install mongrel èµ·å (Railsã¢ããªã®ãã£ã¬ã¯ããªã§) $ mongrel_rails start -p 8000 -e production -d åæ¢ $ mongrel_rails stop
ã¨ããæãã§ç°¡åã«ä½¿ããããããããã
lighttpdã®æ¹ã¯apt-get install lighttpdããã¦ã
éçãªãã¡ã¤ã«ã ãlighttpdã§è¿ããããlighttpd.confã«ãããªæãã«æ¸ãã¦ãããã
# .confã®å é ã®æ¹ã§mod_proxyã追å ãã¦ãã $HTTP["url"] !~ "\.(html|png|gif|svg|xml|js|css|swf|ico)$" { proxy.server = ("/" => ( ("host" => "127.0.0.1", "port" => 8000) )) }
ä½æé度ãæããã«æ©ããªã£ã¦é常ã«å¿«é©ããã°ããï¼