Skip to content

Instantly share code, notes, and snippets.

@atriciasabino
Last active August 29, 2015 14:24
Show Gist options
  • Save atriciasabino/c38a8a3a86ae1a6f8ba7 to your computer and use it in GitHub Desktop.
Save atriciasabino/c38a8a3a86ae1a6f8ba7 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.html;
}
error_page 404 /404.html;
error_page 403 /403.html;
# To allow POST on static pages
error_page 405 =200 $uri;
# ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment