Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Legacy to the Warehouse Service #24

Merged
merged 1 commit into from
May 1, 2018

Conversation

dstufft
Copy link
Member

@dstufft dstufft commented Apr 30, 2018

No description provided.

@@ -308,6 +326,12 @@ sub vcl_error {
set obj.http.Content-Type = "text/html; charset=UTF-8";
synthetic {"<html><head><title>301 Moved Permanently</title></head><body><center><h1>301 Moved Permanently</h1></center></body></html>"};
return(deliver);
} else if (obj.status == 751) {
set obj.status = 308;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we doing 308s on the current service?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❯ curl -XPOST https://pypi.python.org/ -i
HTTP/2 308
server: Varnish
retry-after: 0
location: https://pypi.org/
content-type: text/html; charset=UTF-8
accept-ranges: bytes
date: Mon, 30 Apr 2018 22:58:42 GMT
via: 1.1 varnish
x-served-by: cache-ewr18139-EWR
x-cache: HIT
x-cache-hits: 0
x-frame-options: deny
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
content-length: 124

<html><head><title>308 Permanent Redirect</title></head><body><center><h1>308 Permanent Redirect</h1></center></body></html>

Copy link
Member

@ewdurbin ewdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming we can do the domain swap seamlessly, this is 👍

@dstufft dstufft merged commit e34e06c into pypi:master May 1, 2018
@dstufft dstufft deleted the redirect-legacy branch May 1, 2018 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants