Created
December 10, 2020 08:52
-
-
Save amanjuman/96ae4faf8cddef6fb4a2d112b7efd4c6 to your computer and use it in GitHub Desktop.
AWS ELB/ALB Health Bypass for Nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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