Skip to content

Instantly share code, notes, and snippets.

@cstrnt
Created September 4, 2018 21:24
Show Gist options
  • Save cstrnt/47968dd7c25b49034cd2896da7ce6849 to your computer and use it in GitHub Desktop.
Save cstrnt/47968dd7c25b49034cd2896da7ce6849 to your computer and use it in GitHub Desktop.
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.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