Accessing a static website hosted in windows server from load balancer endpoint

0

How to add load balancer in AWS to windows machine and access the static website from Windows server via load balancer end point. (stay within the free tier limit)

i have no idea on how to proceed on this matter. if it is not possible to access the static website from windows server, what are the other methods to access a static website from a load balancer end point? thank you in advance!

1 回答
0

Hello.

First, install and set up a web server (IIS, etc.) on EC2 Windows.
https://learn.microsoft.com/en-us/iis/get-started/getting-started-with-iis/create-a-web-site
https://medium.com/@jkenny1930/host-website-on-windows-ec2-instance-using-iis-56231b6dbdcf

Next, create an ALB.
When creating the ALB, please configure the inbound rules of the EC2 security group to allow port 80.
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancer-getting-started.html

I think the configuration described in the documentation below is close to what you want to do.
In your case, you want to keep it on the free tier, so I think you should use only one EC2 and place it in a public subnet so as not to use NAT Gateway.
If you use an EC2 public IPv4 address, you can use the free tier for 750 hours per month for 12 months.
https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/migrate-windows-ssl-certificates-to-an-application-load-balancer-using-acm.html
https://aws.amazon.com/about-aws/whats-new/2024/02/aws-free-tier-750-hours-free-public-ipv4-addresses/?nc1=h_ls

Also, if your website only hosts static content such as HTML, you may want to configure it using CloudFront and S3.
https://repost.aws/ja/knowledge-center/cloudfront-serve-static-website

profile picture
专家
已回答 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则