title: AWS ALB Health Check 404
body: <p>I have an ALB with 2 targets in the target group. However my health check aren't working properly. Both are showing</p>
  <pre><code>&quot;Health checks failed with these codes: [404]&quot;
  </code></pre>
  <p>My settings for the health check path are:</p>
  <pre><code>/var/www/html/generic/website.com/healthcheck.php
  </code></pre>
  <p>and if I do a <code>nano /var/www/html/generic/website.com/healthcheck.php</code> on the ec2 instance it shows this which should be all the health check needs I think.</p>
  <pre><code>&lt;?php
  header(&quot;Status: 200&quot;);
  ?&gt;
  </code></pre>
  <p>I double checked the AZ and the ALB is in the same one and subnets as the 2 instances.
  Also when I check my apache logs this is what I see:</p>
  <pre><code>&quot;GET /var/www/html/generic/website.com/healthcheck.php HTTP/1.1&quot; 404 196 &quot;-&quot; &quot;ELB-HealthChecker/2.0&quot;
  </code></pre>
  <p>What am I doing wrong that is making the healthcheck fail?</p>