Jeff Axelrod Jeff Axelrod - 3 months ago 13
HTTP Question

Why am I getting a NoSuchBucket 404 error when forwarding www?

I'm trying to forward (with masking) www.theaxelrods.com to my Amazon S3 hosted static site at http://axelrods.s3-website-us-west-2.amazonaws.com.

For some reason theaxelrods.com forwards just fine, but www.theaxelrods.com does not. I even tried adding www as a subdomain and forwarding from there.

What could be causing this error?


404 Not Found

Code: NoSuchBucket
Message: The specified bucket does not exist
BucketName: www.theaxelrods.com
RequestId: 13C929CE3C10699B
HostId: fmi7K3bgEjRFxah/hxzyGx1FKy1Pte3+BK6TrNWcgy9KwsabLODfXZmGagnWkz3J


Answer

Bucketname are a global namespace on Amazon S3 and must be unique. Read more about this here.

So, you can create another Bucketname with www.theaxelrods.com, if you want to use it with www.*

I don`t try/needed it before... but I found this article, for routing with Route53.

Comments