Skip to content

Instantly share code, notes, and snippets.

@kubawich
Created April 7, 2018 16:37
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 kubawich/0cbed3baf90a223970a6b831de8e2da2 to your computer and use it in GitHub Desktop.
Save kubawich/0cbed3baf90a223970a6b831de8e2da2 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
error_page 404 = @notfound;
location @notfound {
return 301 /;
}
# redirect server error pages to the static page /50x.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