= 2009-08-19 = * [陽明] [bioinfo:changeset:48 Changeset 48] : 歷史計算結果回顧機制 * KING 知識庫中心科技發展計畫 績效成果報告 v2 == Lighttp mod_simple_vhost == * [緣起] 平常慣用的是 apache / apache2 ,因專案需求想知道 lighttpd 如何設定 vhost * [參考] [http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSimpleVhost mod_simple_vhost] * STEP 1: 修改 /etc/lighttpd/conf-available/10-simple-vhost.conf 設定檔 {{{ #!diff --- 10-simple-vhost.conf.org 2009-08-19 01:01:28.000000000 +0800 +++ 10-simple-vhost.conf 2009-08-19 01:02:53.000000000 +0800 @@ -11,4 +11,9 @@ simple-vhost.document-root = "/html/" ## the default host if no host is sent -simple-vhost.default-host = "www.example.com" +simple-vhost.default-host = "classcloud.org" + +## +$HTTP["host"] == "f-motif.classcloud.org" { + server.document-root = "/var/www/f-motif/" +} }}} * STEP 2: 啟動 mod_simple_vhost {{{ $ sudo /usr/sbin/lighttpd-enable-mod simple-vhost $ sudo /etc/init.d/lighttpd force-reload }}} * http://creativecommons.org.tw/blog/archives/000136.html * http://news.cnet.com/8301-13505_3-10310817-16.html * http://news.networkmagazine.com.tw/trends/2009/08/18/14641/ * http://www.pixelbeat.org/docs/rebuild_kernel_module.html * http://fourdollars.blogspot.com/2009/08/coscup-2009-redmine.html * http://fred-zone.blogspot.com/2009/08/emdebian.html * http://fourdollars.blogspot.com/2009/08/commit-your-git-changesets-into.html * http://blog.linux.org.tw/~jserv/archives/002115.html * http://www.cw.com.tw/article/index.jsp?id=38674 * http://www.cheers.com.tw/doc/page.jspx?id=402881e8134e403a01134e42d49602e0 * http://www.cheers.com.tw/doc/page.jspx?id=40288aed22c538f7012327d6183c7101 * http://gevaperry.typepad.com/main/2009/08/the-purposedriven-cloud.html * http://blog.dsa-research.org/?p=190