HTTP host home example com server document-root home omd website serve

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$HTTP["host"] =~ "home.example.com" {
server.document-root = "/home/omd/website"
server.errorlog = "/home/omd/logs/lighttpd.error.log"
accesslog.filename = "/home/omd/logs/lighttpd.access.log"
fastcgi.server = (
"/site.fcgi" => ((
"socket" => "/tmp/fastcgi-socket-omd",
"max-procs" => 1,
"check-local" => "disable" )),
)
alias.url = (
"/media/" => "/home/omd/omd/django/contrib/admin/media/",
)
url.rewrite-once = (
"^(/static.*)$" => "$1",
"^/favicon\.ico$" => "/static/favicon.ico",
"^(/.*)$" => "/site.fcgi$1",
)
}