I am trying to figure out why my ELB Target Group is not passing the health check and throwing a 403 (Forbidden) error. Details are:
I have my ALB Target Group Health Check Setup like so
In my Security Group I have port 80, 443, and 22 open for inbound traffic.
Because it is throwing a 403 (Forbidden) error, I have to assume that the health check "Path" is not setup correctly.
I am using wamp so my default path is c:/wamp64/www so naturally I first set up my path to be directed to the homepage of my website (which I am able to access from the web just fine) but the health check still fails and shows the 403 error.
I even tried entering a path that doesn't exist to see if it would throw a different error but it just shows the 403 when hovering over the "i" next to the unhealth tag so I am not even sure the health check is updating.
Edit
Ok, after going through the resource that was given below, I have successfully pulled the "PrivateIP/index.php" page in cURL.
I have changed my Target Group Health Check Path to "/index.php" but it is still throwing the 403 error.
I am even able to access the homepage of my website publicly from the PrivateIP which seems unsafe but makes me wonder why it is still failing. Below is my setting to allow this in the httpd-vhosts.conf file.
<VirtualHost *:80>
ServerName website.com
ServerAlias xx.xx.xxx.xxx
DocumentRoot c:/wamp64/www/x/x/public/
<Directory "c:/wamp64/www/x/x/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
The server alias is the private IP set by the Elastic IP on my instance.
If anyone has an idea on what to check next please let me know.
You can resolve this failed health status issue by adding a index.html file on your default wamp path and then check your instance health status in your target group and configure your heath checks in target group just like the below one:
Protocol:HTTP
Path:/
Port:80
File location: c:/wamp64/www/html/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With