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; + } }