I am using Bitnami PrestaShop For AWS. I have created my VPC, 2 Web Instances and an ELB. The problem I am facing is that after adding the Instances to ELB they are not coming InService and showing OutOfService. As per AWS doc I checked for the reason by running the following commands
[Use the following command for a TCP connection]
telnet private-IP-address-of-the-instance port
[Use the following command for an HTTP or HTTPS connection]
curl –I private-IP-address-of-the-instance:port/health-check-target-page
On curl I am getting 302 response and NOT 200 which is I believe is the reason as ELB is considering the instances as UnHealthy. But I am not getting why it is giving 302, it should give 200 response.
My Shop URL in DB is ec2-x-x-x-x.AZ.compute.amazonaws.com
In the Instances for ELB I am getting "No (Availability Zone contains no healthy instances)"
And this is my Health check ..
HTTP:80/ (/ = I am expecting should open the homepage of prestashop demo)
Timeout: 5 seconds
Interval: 30 seconds
Unhealthy threshold: 2
Healthy threshold: 10
Can anyone help me in this?