-
Notifications
You must be signed in to change notification settings - Fork 2
/
tileserver.conf
56 lines (47 loc) · 1.49 KB
/
tileserver.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
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName tile
DocumentRoot /var/www
# Renderd configution
LoadTileConfigFile /usr/local/etc/renderd.conf
ModTileRequestTimeout 20
ModTileMissingRequestTimeout 60
ModTileMaxLoadOld 2
ModTileMaxLoadMissing 5
ModTileRenderdSocketName /var/run/renderd/renderd.sock
ModTileCacheDurationMax 6048000
ModTileCacheDurationDirty 900
ModTileCacheDurationMinimum 108000
ModTileCacheDurationLowZoom 9 5184000
ModTileCacheLastModifiedFactor 0.20
ModTileEnableTileThrottling Off
ModTileThrottlingTiles 10000 1
ModTileThrottlingRenders 128 0.2
<Directory />
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
<Directory /usr/local/mapproxy>
Order deny,allow
Allow from all
Require all granted
</Directory>
LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias /mapproxy /usr/local/mapproxy/config.py
RewriteEngine on
RewriteRule ^/([0-9]+)/([0-9]+)/([0-9]+).png /osm_tiles/$1/$2/$3.png [PT]
</VirtualHost>