metanorma / metanorma.org

Official Metanorma website
https://www.metanorma.org
MIT License
7 stars 7 forks source link

Deep links are broken when both (A) with HTTPS and (B) without www prefix #88

Open strogonoff opened 5 years ago

strogonoff commented 5 years ago

Example of a broken link:

https://metanorma.com/blog/12-05-2018/intro-to-metanorma/

There may be something regarding Lambda@Edge redirect logic?

strogonoff commented 5 years ago

Credit for this discovery goes to the author of our new illustrations Adele.

strogonoff commented 5 years ago

This is reproducible across other project sites, e.g. https://rnpgp.com/blog/08-20-2018/rnp-010-released/

strogonoff commented 5 years ago

I’ve gone through https://github.com/riboseinc/terraform-aws-s3-cloudfront-redirect and I can’t pinpoint where the issue may be so far

ronaldtse commented 5 years ago

Interesting, both these work:

If there's a short path attached it still works:

But https://metanorma.com/blog/12-05-2018/intro-to-metanorma/ really doesn't work.

The particular error is:

504 ERROR

The request could not be satisfied.

CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection. 
If you received this error while trying to use an app or access a website, please contact the provider or website owner for assistance. 
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by following steps in the CloudFront documentation (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/http-504-gateway-timeout.html). 
Generated by cloudfront (CloudFront)
Request ID: k6tO63KqedjUvoh6xkA9gzE72h1t35MoYBu0RVBxfhuxNb8v2Nharw==