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
No comments:
Post a Comment