server { listen 80; server_name localhost; sendfile off; charset utf-8; access_log /dev/stdout combined; location / { root /usr/share/nginx/html; index index.html index.htm; expires 0; } location /health { add_header Content-Type text/plain; access_log off; return 200 'Ok'; } error_log /dev/stdout info; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } }