HTTP host foobar ru server document-root home foo bar fastcgi server f

 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"] == "foobar.ru" {
server.document-root = "/home/foo/bar"
fastcgi.server = (
"/fcgi" => (
(
"host" => "127.0.0.1",
"port" => 3333,
"check-local" => "disable",
)
)
)
alias.url = (
"/media/" => "/home/foo/bar/media/",
"/admin-media/" => /home/foo/bar/media/admin-media/",
)
url.rewrite-once = (
"^(/media.*)$" => "$1",
"^(/admin-media.*)$" => "$1",
"^(/.*)$" => "/fcgi$1",
)
}