Skip to content

Instantly share code, notes, and snippets.

@slavafomin
Created September 12, 2017 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slavafomin/4b448ff4833b520b1a84e2094042518c to your computer and use it in GitHub Desktop.
Save slavafomin/4b448ff4833b520b1a84e2094042518c to your computer and use it in GitHub Desktop.
server {
listen 80 default_server;
root /var/www;
location /health-check {
try_files /health-check.html =404;
}
location / {
return 301 https://$host$request_uri;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment