HTTP host www akoval net server document-root var www akoval net www s

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$HTTP["host"] == "www.akoval.net" {
server.document-root = "/var/www/akoval.net/www"
server.errorlog = "/var/log/lighttpd/akoval.error.log"
accesslog.filename = "/var/log/lighttpd/akoval.access.log"
accesslog.format = "%h %l %u %f %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
alias.url = (
"/media" => "/var/lib/python-support/python2.5/django/contrib/admin",
"/static/" => "/var/www/akoval.net/www/media",
)
url.rewrite-once = (
"^(/.*)$" => "/django.fcgi$1",
# "^/static/(.*)$" => "/media/$1",
)
fastcgi.server = (
"/django.fcgi" => (
"main" => (
"socket" => "/var/www/akoval.net/www/.socket",
"check-local" => "disable",
"bin-path" => "/var/www/akoval.net/www/cgi-bin/django.fcgi",
"min-procs" => 1, "max-procs" => 1,
)
)
)
}