Skip to content

Instantly share code, notes, and snippets.

@amanjuman
Created December 10, 2020 08:52
Show Gist options
  • Save amanjuman/96ae4faf8cddef6fb4a2d112b7efd4c6 to your computer and use it in GitHub Desktop.
Save amanjuman/96ae4faf8cddef6fb4a2d112b7efd4c6 to your computer and use it in GitHub Desktop.
AWS ELB/ALB Health Bypass for Nginx
server
{
listen 80 default_server;
listen [::]:80 default_server;
server_name "";
location /health
{
access_log off;
return 200;
}
location ~ /\.well-known/acme-challenge/
{
allow all;
root /var/www/html;
try_files $uri =404;
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment