Line | |
---|
1 | <VirtualHost *:80>
|
---|
2 | ServerAdmin techniek@lijst.wirelessleiden.nl
|
---|
3 | DocumentRoot /var/empty
|
---|
4 | ServerName osmproxy.wirelessleiden.nl
|
---|
5 | ServerAlias a.osmproxy.wirelessleiden.nl b.osmproxy.wirelessleiden.nl c.osmproxy.wirelessleiden.nl d.osmproxy.wirelessleiden.nl e.osmproxy.wirelessleiden.nl f.osmproxy.wirelessleiden.nl
|
---|
6 |
|
---|
7 | ErrorLog /var/log/httpd/nl.wirelessleiden.osmproxy-error.log
|
---|
8 | CustomLog /var/log/httpd/nl.wirelessleiden.osmproxy-access.log common
|
---|
9 |
|
---|
10 | <Directory /var/empty>
|
---|
11 | Allow from all
|
---|
12 | </Directory>
|
---|
13 |
|
---|
14 | <Proxy balancer://osmcluster>
|
---|
15 | BalancerMember http://a.tile.openstreetmap.org:80 max=3
|
---|
16 | BalancerMember http://b.tile.openstreetmap.org:80 max=3
|
---|
17 | BalancerMember http://c.tile.openstreetmap.org:80 max=3
|
---|
18 | </Proxy>
|
---|
19 | # Example /7/63/43.png
|
---|
20 | ProxyPassMatch ^/osm-tile-proxy/(\d{1,2}/\d{1,6}/\d{1,6}\.png)$ balancer://osmcluster/$1 lbmethod=byrequests
|
---|
21 | CacheEnable disk /osm-tile-proxy/
|
---|
22 |
|
---|
23 | # 1 week
|
---|
24 | CacheDefaultExpire 604800
|
---|
25 | CacheRoot "/usr/local/var/httpd/cache/osmproxy"
|
---|
26 | CacheDirLevels 2
|
---|
27 | CacheDirLength 1
|
---|
28 | CacheMaxFileSize 1000000
|
---|
29 | CacheMinFileSize 1
|
---|
30 | CacheIgnoreCacheControl On
|
---|
31 | CacheIgnoreNoLastMod On
|
---|
32 | CacheIgnoreQueryString Off
|
---|
33 | CacheIgnoreHeaders None
|
---|
34 | CacheLastModifiedFactor 0.1
|
---|
35 | CacheMaxExpire 86400
|
---|
36 | CacheStoreNoStore On
|
---|
37 | CacheStorePrivate On
|
---|
38 |
|
---|
39 |
|
---|
40 | <Location /balancer-manager>
|
---|
41 | SetHandler balancer-manager
|
---|
42 |
|
---|
43 | Order Deny,Allow
|
---|
44 | Allow from all
|
---|
45 | </Location>
|
---|
46 | </VirtualHost>
|
---|
47 |
|
---|
48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.