Skip to content

Instantly share code, notes, and snippets.

@wellington1993
Forked from baskaran-md/nginx.conf
Created May 21, 2018 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 wellington1993/a9fb560bcb30fd771cffcff7ed80c4a1 to your computer and use it in GitHub Desktop.
Save wellington1993/a9fb560bcb30fd771cffcff7ed80c4a1 to your computer and use it in GitHub Desktop.
NginX allow POST on static pages.
# ...
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
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