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