- 最新
- 最多得票
- 最多評論
As I understand, these are all WordPress sites.
Besides Lightsail, an option is to host multiple websites on one or a few powerful EC2 instances. Both Apache and Nginx web engines supports virtual hosts, which is "running more than one web site (such as company1.example.com and company2.example.com) on a single machine".
Lightsail currently supports Intel processors for up to 8 vCPUs and 32GB RAM. For EC2, you can use Graviton processor instances which provides best price performance and higher vCPU and RAM limits for m7g. You can start with a small EC2 instance size and change instance type and size later as you host more sites. Since your site will be running 24 by 7, explore EC2 Savings Plans for cost savings.
Front your WordPress with Amazon CloudFront CDN for performance and security benefits. Request SSL/TLS certs from AWS Certificate Manager and attach them to CloudFront.
You will need to setup the LAMP/LEMP stack, WordPress and configure virtual hosts on your EC2. WordPress is available from AWS Marketplace, you have to configure it to support virtual hosts. If you need help setting up LAMP stack on EC2, this CloudFormation template may help
May I ask where the figure of 50 dollars per domain per month comes from? It's actually 50 cents.
Hosted Zones and Records
$0.50 per hosted zone / month for the first 25 hosted zones
$0.10 per hosted zone / month for additional hosted zones
Further down the pricing page there is mention of traffic flow, and that is 50 dollars per-policy per-month, but you don't need this, especially just as you are starting out.
In your question you mention "hosting" but I think there are two parts here. The other answer (from Steve_M) covers the Route 53 domain costs; but you also ask about the hosting of a web server.
If the content is static then look at using CloudFront and S3 - very low cost and extremely scalable.
If the content is not static but isn't truly dynamic (as in: you have a content management system and you make changes some of the time) consider publishing each site and (again) hosting in S3 with CloudFront as the content distribution and caching service.
For a dynamic website EC2 will be fine; but you can lower costs greatly by using a combination of S3 (for static components like HTML/CSS/images) and API Gateway+Lambda for the dynamic parts. This may require considerable work from you but it results in a scalable website at very low cost.
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
For someone new to hosting and using Lightsail, this should be the accepted answer. This answer provides a better solution since the websites are dynamic being that they are WordPress. If the OP is not familiar with setting up LAMP/LEMP stacks, you could use something like cPanel to help you or another "hosting control panel", even on AWS EC2 instances (or Lightsail). Furthermore, migrating all your DNS and domains to Route 53 would be a much better solution and allow you to take advantage of other AWS services. This could be done on two EC2 instances, load balancer, SSL certs, Route 53 for less than $100/month. If you would like some help, I would be more than happy to help you personally.