From ab174f2b8cffc65aae412f018a8530aafddd719e Mon Sep 17 00:00:00 2001 From: Melpa Date: Fri, 2 Jan 2015 21:35:50 -0800 Subject: [PATCH] Sync nginx config on stable. --- cfg/etc/nginx/sites-available/melpa-stable | 5 +++++ cfg/home/etc/nginx-stable | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cfg/etc/nginx/sites-available/melpa-stable b/cfg/etc/nginx/sites-available/melpa-stable index c5cd8edd..dbbf1dda 100644 --- a/cfg/etc/nginx/sites-available/melpa-stable +++ b/cfg/etc/nginx/sites-available/melpa-stable @@ -23,6 +23,11 @@ server { rewrite ^ $scheme://stable.melpa.org$request_uri? permanent; } +server { + server_name melpa.milkbox.net; + rewrite ^ $scheme://melpa.org$request_uri? permanent; +} + server { listen 80; ## listen for ipv4; this line is default and implied #listen [::]:80 default ipv6only=on; ## listen for ipv6 diff --git a/cfg/home/etc/nginx-stable b/cfg/home/etc/nginx-stable index cd5af6a2..e2696c1b 100644 --- a/cfg/home/etc/nginx-stable +++ b/cfg/home/etc/nginx-stable @@ -84,7 +84,9 @@ http { location = /50x.html { root /var/www/nginx-default; } - + location ~ ^/packages/.*\.svg { + add_header Cache-Control no-cache; + } }