summaryrefslogtreecommitdiff
path: root/etc/lighttpd/morph-cache-httpd.conf
blob: 08d25a95b0274f34f9a7a1cbfc4760f15dd7173b (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
server.document-root = "/var/www/htdocs"

server.port = 8080

server.username = "cache"
server.groupname = "cache"

server.modules += ("mod_cgi", "mod_fastcgi")

mimetype.assign = (
  ".html" => "text/html",
  ".txt" => "text/plain",
  ".jpg" => "image/jpeg",
  ".png" => "image/png",
  ".css" => "text/css"
)

$SERVER["socket"] == ":8080" {
    server.username = "cache"
    server.groupname = "cache"
    fastcgi.server = (
        "" =>
        (
            "python-fcgi" =>
                (
                    "socket" => "/var/run/lighttpd/morph-cache-server.socket",
                    "bin-path" => "/usr/bin/morph-cache-server --config=/etc/morph-cache-server.conf",
                    "check-local" => "disable",
                    "max-procs" => 32,
                )
        )
    )
}

$SERVER["socket"] == ":8081" {
    server.username = "cache"
    server.groupname = "cache" fastcgi.server = (
        "" =>
        (
            "python-fcgi" =>
                (
                    "socket" => "/var/run/lighttpd/morph-cache-server-write.socket",
                    "bin-path" => "/usr/bin/morph-cache-server --config=/etc/morph-cache-server-write.conf",
                    "check-local" => "disable",
                    "max-procs" => 32,
                )
        )
    )
}