From 07ce78e290c60951d4087d1904c800b79b89c76c Mon Sep 17 00:00:00 2001 From: Melpa Date: Thu, 23 Oct 2014 01:27:42 -0400 Subject: [PATCH] update melpa config to rewrite url --- cfg/etc/nginx/sites-available/melpa | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cfg/etc/nginx/sites-available/melpa b/cfg/etc/nginx/sites-available/melpa index dde89e69..9b426eaa 100644 --- a/cfg/etc/nginx/sites-available/melpa +++ b/cfg/etc/nginx/sites-available/melpa @@ -17,6 +17,11 @@ # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. ## +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 @@ -25,6 +30,7 @@ server { # Make site accessible from http://localhost/ server_name localhost; + server_name melpa.org; # proxy to Apache 2 and mod_python location / {