From 432596412ee60971fc3997fd1bfe64c5bccb389f Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 10 Jun 2015 14:25:15 +0200 Subject: Prefer 302 over 301 redirections. --- roles/lists/files/etc/nginx/sites-available/sympa | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/lists/files/etc/nginx/sites-available/sympa') diff --git a/roles/lists/files/etc/nginx/sites-available/sympa b/roles/lists/files/etc/nginx/sites-available/sympa index 3c96a37..fa3cad1 100644 --- a/roles/lists/files/etc/nginx/sites-available/sympa +++ b/roles/lists/files/etc/nginx/sites-available/sympa @@ -7,7 +7,7 @@ server { access_log /var/log/nginx/lists.access.log; error_log /var/log/nginx/lists.error.log info; - return 301 https://$host$request_uri; + return 302 https://$host$request_uri; } @@ -25,7 +25,7 @@ server { ssl_certificate_key /etc/nginx/ssl/lists.fripost.org.key; location = / { - return 301 /sympa$args; + return 302 /sympa$args; } location ^~ /static-sympa/ { @@ -41,7 +41,7 @@ server { } location ~* ^/([^/]+)/?$ { - return 301 /$1/sympa$args; + return 302 /$1/sympa$args; } location ~* ^/([^/]+)/sympa(/.*)?$ { set $vhost $1; -- cgit v1.2.3