aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-09-26 11:22:47 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-09-26 11:22:47 +0100
commit7d5b484c57aeb0c06b4a62128af136919902a1c2 (patch)
treeaa76cefb7990781f5405a665656bff20a017b2a9
parent4b1f88cd9aa1fc244ec4542d164496d322f2f0d6 (diff)
Add deflate/header config for jslib, same as js, remove typo.
-rwxr-xr-xbin/pre-install-as-root7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/pre-install-as-root b/bin/pre-install-as-root
index 0810ea6ae..3f7fb291f 100755
--- a/bin/pre-install-as-root
+++ b/bin/pre-install-as-root
@@ -223,7 +223,12 @@ add_website_to_apache() {
Alias /admin/ $REPOSITORY/web-admin/
- Alias /jslib/ $REPOSITORY/commonlib/jslib/"
+ # Set up commonlib jslib directory
+ Alias /jslib/ $REPOSITORY/commonlib/jslib/
+ <Location /jslib>
+ AddOutputFilter DEFLATE js
+ Header append Cache-Control "no-transform"
+ </Location>
LogLevel info
ErrorLog $LOG_DIRECTORY/error.log