source: src/django_gheat/wlheatmap-httpd.conf@ 9549

Last change on this file since 9549 was 9549, checked in by rick, 13 years ago
  • Caches are now fully-file based as memcached was not working well with large entries (like images).
  • OSM django proxy is way to slow, rewrite to use apache balanced proxy members.
  • Use HTTPD mod_cache to cache heavy image generation work.
File size: 1.7 KB
Line 
1Alias /buildbot/ /usr/local/www/buildbot/
2<Directory /usr/local/www/buildbot/>
3 Order allow,deny
4 Allow from all
5 IndexOptions HTMLTable NameWidth=* VersionSort
6</Directory>
7
8# Hack to ``dynamically create the files''
9#Alias /d/wlheatmap/tile/fixed/wl-only /usr/local/var/django/tile/fixed/wl-only
10#<Directory /usr/local/var/django/tile/fixed/wl-only>
11# Order deny,allow
12# Allow from all
13# RewriteEngine on
14# RewriteBase /d/wlheatmap/tile/fixed/wl-only
15# RewriteCond %{REQUEST_FILENAME} !-f
16# RewriteCond %{REQUEST_FILENAME} !-d
17# RewriteRule ^(.*)$ /d/wlheatmap/tile/fixed/wl-only/$1 [PT,QSA]
18#</Directory>
19
20Alias /d/static /usr/home/rvdzwet/django_gheat/sitestatic
21WSGIScriptAlias /d /usr/home/rvdzwet/django_gheat/django.wsgi
22<Directory /usr/home/rvdzwet/django_gheat>
23 Order allow,deny
24 Allow from all
25</Directory>
26
27<Proxy balancer://osmcluster>
28 BalancerMember http://a.tile.openstreetmap.org:80 max=1
29 BalancerMember http://b.tile.openstreetmap.org:80 max=1
30 BalancerMember http://c.tile.openstreetmap.org:80 max=1
31</Proxy>
32# Example /7/63/43.png
33ProxyPassMatch ^/osm-tile-proxy/(\d{1,2}/\d{1,6}/\d{1,6}\.png)$ balancer://osmcluster/$1 lbmethod=byrequests
34CacheEnable disk /osm-tile-proxy/
35CacheEnable disk /d/wlheatmap/tile/
36
37
38# 1 week
39CacheDefaultExpire 604800
40CacheRoot "/usr/local/var//apache/cache/"
41CacheDirLevels 2
42CacheDirLength 1
43CacheMaxFileSize 1000000
44CacheMinFileSize 1
45CacheIgnoreCacheControl On
46CacheIgnoreNoLastMod On
47CacheIgnoreQueryString Off
48CacheIgnoreHeaders None
49CacheLastModifiedFactor 0.1
50CacheMaxExpire 86400
51CacheStoreNoStore On
52CacheStorePrivate On
53
54
55<Location /balancer-manager>
56 SetHandler balancer-manager
57
58 Order Deny,Allow
59 Allow from all
60</Location>
61
Note: See TracBrowser for help on using the repository browser.