Skip to content

Instantly share code, notes, and snippets.

@kunokdev
Created December 13, 2018 23:30
Show Gist options
  • Save kunokdev/33a13cbc89a4b76710a439082dcf6239 to your computer and use it in GitHub Desktop.
Save kunokdev/33a13cbc89a4b76710a439082dcf6239 to your computer and use it in GitHub Desktop.
Minimal default Nginx configuration
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
expires -1; # Set it to different value depending on your standard requirements
}
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