krishna8723's avatar

Ping Path for AWS Configure Health Check for Laravel project.

Hi, What will be the ping path for configure health check for laravel project in aws during creation of load balancer.

I tried '/' but the status is still: 0 of 1 instances in service

Please help.

0 likes
6 replies
mchumer's avatar

Same problem.. waiting for good answers..

1 like
mchumer's avatar

I've found a solution that appear to work.

Just create a html file in /public named heartbeat.html and point the health check to it.

<html>
  <head>
    <title>ELB Heartbeat</title>
  </head>

  <body>
    <p>OK</p>
  </body>
</html>
1 like
crh's avatar

I just saw this thread.

I recommend you add also a small PHP snippet in the file, to be covered for the times when PHP "trips" on the server.

phannarak's avatar

Hi,

You just add "/favicon.ico" , and make sure in /public folder exists file name: favicon.ico

Please or to participate in this conversation.