Merge pull request #614 from coreos-inc/www-redirect
nginx: add www redirect
This commit is contained in:
commit
e80fcc1b28
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue