What is the best way to use AWS to host 100 small websites?

0

I have 100 domains registered at namecheap.com. I started using AWS Lightsail with instances to manage my domains. There is a limit of 6 DNS zones before it recommends Route 53 and it looks like I'll have to pay $50/month to route traffic for each domain, so I guess I'll just use namecheap as my registrar and my dns manager. Route 53 $50 per domain per month sounds too expensive for me. https://aws.amazon.com/route53/pricing/

Also, I am in the process of requesting a lightsail instance limit increase above 20. I am thinking I can continue to use AWS Lightsail to manage my 100 websites on wordpress once I get approved over 20. $5/month hosting is more in line with my current budget.

I think I will stay under a 1k visitors a month. This will probably keep me in the free tier, yes? Should I consider EC2 for my 100 websites as it might be cheaper? https://aws.amazon.com/ec2/pricing/

What is the best way to use AWS to host 100 small websites?

asked 7 months ago242 views
3 Answers
1

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

AWS
EXPERT
Mike_L
answered 7 months ago
  • 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.

0

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.

profile picture
EXPERT
Steve_M
answered 7 months ago
profile pictureAWS
EXPERT
reviewed 7 months ago
0

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.

profile pictureAWS
EXPERT
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions