forked from kartta-labs/cgimap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lighttpd.conf
54 lines (44 loc) · 1.48 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
# default document-root
server.document-root = "/home/matt/Programming/openstreetmap/cgimap/"
# TCP port
server.port = 31337
# selecting modules
server.modules = ( "mod_access", "mod_rewrite", "mod_fastcgi" )
# handling unknown routes
server.error-handler-404 = "/dispatch.map"
# 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["request-method"] == "GET" {
url.rewrite-once = (
"^/api/0\.6/map(\.json)?(\?(.*))?$" => "/dispatch.map",
"^/api/0\.6/(node|way|relation)/[[:digit:]]+$" => "/dispatch.map",
"^/api/0\.6/(way|relation)/[[:digit:]]+/full$" => "/dispatch.map",
"^/api/0\.6/(nodes|ways|relations)(\?(.*))?$" => "/dispatch.map",
)
}
fastcgi.debug = 1
fastcgi.server = ( ".map" =>
(( "socket" => "/tmp/map-fastcgi.socket",
"bin-path" => "/home/matt/Programming/openstreetmap/cgimap/openstreetmap-cgimap",
"docroot" => "/",
"min-procs" => 1,
"max-procs" => 1,
"check-local" => "disable",
"bin-environment" => (
# "CGIMAP_HOST" => "localhost",
"CGIMAP_DBNAME" => "apidb",
"CGIMAP_LOGFILE" => "/home/matt/Programming/openstreetmap/cgimap/log",
# "CGIMAP_USERNAME" => "matt",
# "CGIMAP_PASSWORD" => ""
)
))
)