I set up load balancer for my EC2 instances.
All the security groups set up between load balancer and instances look fine.
The current problem is that instances status in load balancer are OutofService
.
For that I think I don't have a target page for the Health Check on my instance.
What is a target page? In my instance, inside /var/www/html
folder I have index.php only directing to one html page (home page) inside another folder.
So for health check, assumed that I need to have index.html
(target page) inside /var/www/html
.
My questions are:
- Do I need to create target page index.html inside the
/var/www/html
folder? - What should be inside that
index.html
file?