aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/crontab.ugly2
-rw-r--r--conf/httpd.conf-example9
2 files changed, 10 insertions, 1 deletions
diff --git a/conf/crontab.ugly b/conf/crontab.ugly
index d1779ff73..415176779 100644
--- a/conf/crontab.ugly
+++ b/conf/crontab.ugly
@@ -33,5 +33,5 @@ MAILTO=cron-!!(*= $site *)!!@mysociety.org
# Once a day on all servers
39 2 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/problems-filed-graph
43 2 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/problem-creation-graph
-
+00 8 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/check-for-zombies !!(*= $user *)!!
diff --git a/conf/httpd.conf-example b/conf/httpd.conf-example
index 378aa88a5..8ed6a9c81 100644
--- a/conf/httpd.conf-example
+++ b/conf/httpd.conf-example
@@ -16,6 +16,7 @@
# # on production servers these are run under fastcgi
# Options +ExecCGI
# AddHandler cgi-script .cgi
+# AllowOverride None
# </Directory>
#
# <Directory /home/yourname/fixmystreet/web-admin>
@@ -60,6 +61,14 @@ ProxyPassReverse /mapit/ http://mapit.mysociety.org/
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f
RewriteRule /(.+) /$1 [L]
+# Performance things
+ExpiresActive On
+ExpiresByType text/css "access plus 10 years"
+ExpiresByType application/javascript "access plus 10 years"
+<Location /js/>
+ AddOutputFilter DEFLATE js
+</Location>
+
# Don't want jslib being passed to Catalyst
RewriteRule ^/jslib(.*) /jslib$1 [L,PT]