aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2012-10-02 17:38:17 +0100
committerMark Longair <mhl@pobox.com>2012-10-03 09:57:26 +0100
commit00a11fdc1288da6555c890e68f161b0f567c6452 (patch)
tree36d876675377a550b3478464595f80e201aa1b53
parent8e7a56859967f3bbdc005eb6ebacd0d01caac221 (diff)
Some tidying of nginx.conf.example
-rw-r--r--conf/nginx.conf.example7
1 files changed, 6 insertions, 1 deletions
diff --git a/conf/nginx.conf.example b/conf/nginx.conf.example
index 3c8c7bb69..c356da887 100644
--- a/conf/nginx.conf.example
+++ b/conf/nginx.conf.example
@@ -14,13 +14,17 @@ server {
root /var/www/fixmystreet/fixmystreet/web;
error_page 503 /down.html;
- # Make sure that Javascript, CSS and HTML are compressed:
+ # Make sure that Javascript and CSS are compressed. (HTML is
+ # already compressed under the default configuration of the nginx
+ # package.)
+
gzip on;
gzip_disable "msie6";
gzip_types application/javascript application/x-javascript text/css;
# Set a long expiry time for CSS and Javascript, and prevent
# the mangling of Javascript by proxies:
+
location ~ \.css$ {
expires 10y;
}
@@ -51,6 +55,7 @@ server {
}
try_files $uri @catalyst;
}
+
location /down.html {
internal;
}