简体   繁体   中英

using amazon Ec2 with S3

I have installed Wordpress on amazon Ec2 instance and trying to host it on my bucket on S3. is there any way to host the website without using route 53? I have tried using w3 total cache to upload the static contents(cloudfront + S3), but don't know how to set up, so that i can access it with the bucket uri. would it be possible to set up like that and make it accessible through the site uri?

Yes, you can:

  • Output your Wordpress blog as static HTML, and store it in Amazon S3
  • Create a CloudFront distribution, with Amazon S3 as the origin
  • Access CloudFront via the provided URL, and your (static) blog would appear

You can also associate a custom DNS name with your CloudFront Distribution, so that it has a more friendly URL (eg myblog.com ).

You could achieve a similar result without CloudFront, by using the Static Website Hosting option on your Amazon S3 bucket and associating it with a custom DNS name .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM