From 9c866eac4ba7a45d7fe92a4ea80df3af13c44c00 Mon Sep 17 00:00:00 2001 From: Silas Sewell Date: Wed, 7 Oct 2015 11:17:07 -0400 Subject: [PATCH] nginx: add www redirect Fixes #452 --- conf/server-base.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/server-base.conf b/conf/server-base.conf index 046121e24..1b5492276 100644 --- a/conf/server-base.conf +++ b/conf/server-base.conf @@ -4,6 +4,10 @@ server_name _; keepalive_timeout 5; +if ($host = "www.quay.io") { + return 301 $scheme://quay.io$request_uri; +} + if ($args ~ "_escaped_fragment_") { rewrite ^ /snapshot$uri; }