Setting foobar.com and www.foobar.com to point to my Amazon S3–hosted site

前端 未结 2 1749
栀梦
栀梦 2021-01-18 15:05

I have a website hosted at Amazon S3; the URL is something like www.foobar.com.s3-website-us-east-1.amazonaws.com. I would like to set my domain registrar (Name

相关标签:
2条回答
  • 2021-01-18 15:34

    It looks like AWS S3 added bucket redirection around the end of 2012 to allow support for www.foobar.com and foobar.com

    0 讨论(0)
  • 2021-01-18 15:40

    You cannot serve "domain apex" content from S3-hosted websites. The easiest solution is to configure your domain such that "foobar.com" is redirected to "www.foobar.com". Unfortunately this requires you to run a HTTP server with a rewrite rule to enforce it.

    I can't vouch personally for the service but http://www.wwwizer.com/ offers a free apex to www redirect service.

    0 讨论(0)
提交回复
热议问题