forked from zerebubuth/openstreetmap-cgimap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlighttpd.conf
45 lines (37 loc) · 1.11 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
# default document-root
server.document-root = "/home/matt/cgimap/"
# TCP port
server.port = 31337
# selecting modules
server.modules = ( "mod_access", "mod_rewrite", "mod_fastcgi" )
# include, relative to dirname of main config file
#include "mime.types.conf"
# read configuration from output of a command
#include_shell "/usr/local/bin/confmimetype /etc/mime.types"
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png"
)
#debug.log-request-handling = "enable"
$HTTP["url"] =~ "^/api/0\.6/map" {
server.error-handler-404 = "/dispatch.map"
}
fastcgi.debug = 1
fastcgi.server = ( ".map" =>
(( "socket" => "/tmp/map-fastcgi.socket",
"bin-path" => "/home/matt/cgimap/map",
"docroot" => "/",
"min-procs" => 1,
"max-procs" => 1,
"check-local" => "disable",
"bin-environment" => (
"CGIMAP_LOGFILE" => "/home/matt/cgimap/log",
"CGIMAP_HOST" => "localhost",
"CGIMAP_DBNAME" => "planet_mirror",
"CGIMAP_USERNAME" => "read_planet_mirror",
"CGIMAP_PASSWORD" => "read_planet_mirror"
)
))
)