Quantcast
Channel: Active questions tagged amazon-s3 - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 73

s3 static hosting not redirecting my request

$
0
0

I followed these instructions to redirect:

platform.demo.interos.net

to

platform.demo.interos.io

The instructions use s3 for static site hosting and use the redirect option: https://aws.amazon.com/premiumsupport/knowledge-center/redirect-domain-route-53/

But when I use the browser, the browser won't actually redirect me from the .net to the .io page, it just hangs. But when I run this:

curl -I platform.demo.interos.net

I get:

HTTP/1.1 301 Moved Permanentlyx-amz-id-2: E4VM/vr+1HtO6Q0vvCNL16nxxxxxxFDvvgPW+EjI4g9Zk=x-amz-request-id: 175E9039358ECD1BDate: Sun, 28 Jul 2019 19:30:09 GMTLocation: https://platform.demo.interos.io/Content-Length: 0Server: AmazonS3

So what's not working here - why doesn't the browser recognize the 301 and do the redirection?

UPDATE:

I now realize it's because in the browser address bar it often adds an https:// in front, and with the protocol in front, it will not redirect. Anyone know why?

For example:

curl -I https://platform.demo.interos.net

will not resolve. but this will resolve:

curl -I platform.demo.interos.net

Viewing all articles
Browse latest Browse all 73

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>