Changes between Version 1 and Version 2 of jazz/09-08-19


Ignore:
Timestamp:
Aug 19, 2009, 2:54:18 AM (15 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/09-08-19

    v1 v2  
     1= 2009-08-19 =
     2
     3== Lighttp mod_simple_vhost ==
     4
     5 * [緣起] 平常慣用的是 apache / apache2 ,因專案需求想知道 lighttpd 如何設定 vhost
     6 * [參考] [http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSimpleVhost mod_simple_vhost]
     7 * STEP 1: 修改 /etc/lighttpd/conf-available/10-simple-vhost.conf 設定檔
     8{{{
     9#!diff
     10--- 10-simple-vhost.conf.org    2009-08-19 01:01:28.000000000 +0800
     11+++ 10-simple-vhost.conf        2009-08-19 01:02:53.000000000 +0800
     12@@ -11,4 +11,9 @@
     13 simple-vhost.document-root       = "/html/"
     14
     15 ## the default host if no host is sent
     16-simple-vhost.default-host        = "www.example.com"
     17+simple-vhost.default-host        = "classcloud.org"
     18+
     19+##
     20+$HTTP["host"] == "f-motif.classcloud.org" {
     21+           server.document-root = "/var/www/f-motif/"
     22+}
     23}}}
     24 * STEP 2: 啟動 mod_simple_vhost
     25{{{
     26$ sudo /usr/sbin/lighttpd-enable-mod simple-vhost
     27$ sudo /etc/init.d/lighttpd force-reload
     28}}}
    129
    230 * http://creativecommons.org.tw/blog/archives/000136.html