-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.lighttpd.conf
97 lines (86 loc) · 2.98 KB
/
.lighttpd.conf
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#debug.log-request-handling = "enable"
# FIXME: this doesn't prevent creation of error.log and access.log, so it's
# useless atm
#$HTTP["url"] =~ "^/phetools($|/)" {
# accesslog.filename = "/data/project/phetools/log/lighttpd.access.log"
# server.errorlog = "/data/project/phetools/log/lighttpd.error.log"
#}
$HTTP["url"] =~ "^/phetools/log-irc($|/)" {
dir-listing.activate = "enable"
mimetype.assign = (
".txt" => "text/plain; charset=utf-8"
)
}
$HTTP["url"] =~ "^/phetools/not_transcluded($|/)" {
dir-listing.activate = "enable"
mimetype.assign = (
".txt" => "text/plain; charset=utf-8",
".html" => "text/html; charset=utf-8"
)
}
# to avoid too much vm use but it breaks php when max-procs = CHILD = 1
# and even with max-procs = 2, CHILD = 1 (status.php seems to deadlock
# unsure why, prolly other php call through the web interface doesn't
# terminate so all thread are busy until a timeout occur, or perhaps
# the actual pywikibot breakage cause a mishandled exception)
#fastcgi.server += ( ".php" =>
# ((
# "bin-path" => "/usr/bin/php-cgi",
# "socket" => "/tmp/php.socket.phetools",
# "max-procs" => 2,
# "bin-environment" => (
# "PHP_FCGI_CHILDREN" => "1",
# "PHP_FCGI_MAX_REQUESTS" => "500"
# ),
# "bin-copy-environment" => (
# "PATH", "SHELL", "USER"
# ),
# "broken-scriptfilename" => "enable",
# "allow-x-send-file" => "enable"
# ))
#)
fastcgi.server += (
"/phetools/hocr_cgi.py" =>
((
"socket" => "/tmp/python.hocr_fcgi.socket.phetools",
"bin-path" => "/data/project/phetools/phe/hocr/hocr_fcgi.py",
"check-local" => "disable",
"max-procs" => 1,
))
)
fastcgi.server += (
"/phetools/credits.py" =>
((
"socket" => "/tmp/python.credits_fcgi.socket.phetools",
"bin-path" => "/data/project/phetools/phe/history_credit/credits_fcgi.py",
"check-local" => "disable",
"max-procs" => 1,
))
)
fastcgi.server += (
"/phetools/pdf_to_djvu_cgi.py" =>
((
"socket" => "/tmp/python.pdf_to_djvu_fcgi.socket.phetools",
"bin-path" => "/data/project/phetools/phe/ocr/pdf_to_djvu_fcgi.py",
"check-local" => "disable",
"max-procs" => 1,
))
)
fastcgi.server += (
"/phetools/pages_without_scan.py" =>
((
"socket" => "/tmp/python.pages_without_scan_fcgi.socket.phetools",
"bin-path" => "/data/project/phetools/phe/pages_without_scan/pages_without_scan_fcgi.py",
"check-local" => "disable",
"max-procs" => 1,
))
)
fastcgi.server += (
"/phetools/modernization_cgi.py" =>
((
"socket" => "/tmp/python.modernization_fcgi.socket.phetools",
"bin-path" => "/data/project/phetools/phe/modernization/modernization_fcgi.py",
"check-local" => "disable",
"max-procs" => 1,
))
)