Skip to content

Instantly share code, notes, and snippets.

@liangzai-cool
Forked from baskaran-md/nginx.conf
Created June 14, 2016 01:57
Show Gist options
  • Save liangzai-cool/3a10fca0b44a13f5db1d9c3de5a1a528 to your computer and use it in GitHub Desktop.
Save liangzai-cool/3a10fca0b44a13f5db1d9c3de5a1a528 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