Skip to content

Instantly share code, notes, and snippets.

@brunosabot
Last active February 19, 2022 18:49
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 brunosabot/ed052ea7a9a97dca82294438ed913490 to your computer and use it in GitHub Desktop.
Save brunosabot/ed052ea7a9a97dca82294438ed913490 to your computer and use it in GitHub Desktop.
server {
listen 8080;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
# 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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment