=== Multiple moin processes automatically started by lighttpd ===
136
137
As an alternative to manually starting multiple processes of moin.fcg and assigning a distinct TCP port to each, this task can be delegated to lighttpd itself. The key is to specify "bin-path" option to fastcgi.server, and to allow multiple moin.fcg processes to be started as configured by "min-procs" and "max-procs" options. The hidden trick is that lighttpd will allocate successive TCP port numbers to each process, starting with "port".
138
Tested with lighttpd 1.4.10.
139
140
Example:
141
{{{
142
fastcgi.server = ( "/mywiki" =>
143
(( "docroot" => "/",
144
"min-procs" => 4,
145
"max-procs" => 4,
146
# allocate successive port numbers for each process, starting with "port"
147
"bin-path" => "/usr/local/bin/moin.fcg",
148
"host" => "127.0.0.1",
149
"port" => 2200,
150
"check-local" => "disable",
151
"broken-scriptfilename" => "enable",
152
))
153
)
154
}}}
135
155
136
156
=== MoinMoin Startup script ===
137
157
200
220
201
221
With this script, moin instances will be started automatically on startup.