title: Code to enable healthcheck in node app for ALB
body: <p>Im checking to enable Application Load Balancer in AWS using Node. In my EC2 instances Im using a nginx proxy to send to 3000 port and all I configure is a "/healthcheck" path to validate in nginx and node the health control. In nginx was quite easy </p>
  
  <pre><code>location /healthcheck {
  return 200;
  </code></pre>
  
  <p>}</p>
  
  <p>But for node I can't find a clean example to enable same function for 3002 port. For now Im having a timeout error.</p>
  
  <p>Thanks</p>
  
  <p>PD: I checked history and last answer is 3 years old creating a ping.html file 
  <a href="https://stackoverflow.com/questions/36188048/how-to-configure-aws-elastic-load-balancers-heath-check-for-node-js">How to configure AWS Elastic Load Balancer&#39;s heath check for Node.js</a></p>