This article is merely notes for myself just now. I may turn it into a full article if I get any feedback.
I have a AWS (Amazon Web Service) Free Tier trial account and currently experimenting and going through tutorials. I have set up an Elastic Load Balancer to two Apache2 PHP Webservers (HTTPS) with, a MySQL DB Server. I then put a copy of my bespoke PHP pages, searching my music collection database.
AWS - How do I set a Elastic (fixed) IP for the Load Balancer?
I wanted to set a DNS entry for aws.taurus2.co.uk
You cannot set an Elastic IP for the Load Balancer. Instead, set a CNAME in your DNS to the Load Balancers 'DNS Name'.
i.e.
AWS - How do I redirect HTTP traffic on my webserver to HTTPS on my Load Balancer?
Next, I wanted to redirect HTTP traffic on my webservers to HTTPS on the Load Balancer.
Add or change in the <Directory /var/www/> section
The above tests the X-Forwarded-Proto header and redirects HTTP to HTTPS, without interfering with ELB health check.
You can tail your apache access log with the below which, removes any "ELB-HealthChecker" entries which get in the way.
References:
https://forums.aws.amazon.com/thread.jspa?messageID=745509
1 comment:
The AWS Cloud Practitioner Essentials course is designed to provide beginners with a foundational understanding of cloud computing concepts and core AWS services. It introduces learners to the AWS Cloud, including topics such as compute, storage, networking, databases, security, pricing, and support services. The course helps individuals understand how organizations use cloud technology to improve scalability, flexibility, and cost efficiency. It is especially useful for students, business professionals, and anyone preparing for the AWS Certified Cloud Practitioner certification exam.
Post a Comment