18F / myra

Landing pages to promote the Treasury's new myRA initiative.
https://myra.treasury.gov
Other
8 stars 6 forks source link

404 page not working #131

Closed cscairns closed 10 years ago

noahmanger commented 10 years ago

We need to try this from the production site, I believe, right @konklone?

konklone commented 10 years ago

Right, but @cscairns is right about that - if I go to https://d37uca4in84hpc.cloudfront.net/asdfasdf, I get a CloudFront 403 page. However, I did try to configure this, CloudFront gives you the ability to specify a path for 404s, and this is what's in CloudFront now:

errors-cloudfront-myra

And the details:

errors-2

The URL I specified, /404/, does seem to work right: https://d37uca4in84hpc.cloudfront.net/404/

I think it's because the S3 bucket is returning a 403 and not a 404. So I'll configure a 403 to return a 404, and see if that works.

(You can also visit https://myra.treasury.gov/asdfasdf to try it out if you add 54.192.4.150 myra.treasury.gov to your /etc/hosts file.)

konklone commented 10 years ago

I updated the setting to treat 403's as 404's and to render /404/, but it looks like it'll take at least a few minutes. I'll check back later.