Skip to content

Instantly share code, notes, and snippets.

@joequery
Created October 5, 2012 23:53
Show Gist options
  • Select an option

  • Save joequery/3843136 to your computer and use it in GitHub Desktop.

Select an option

Save joequery/3843136 to your computer and use it in GitHub Desktop.
# Redirect everything to the main site.
server {
server_name www.mysite.com;
return 301 http://mysite.com$request_uri;
}
server {
server_name mysite.com;
location / { try_files $uri @flaskapp; }
location @flaskapp {
include uwsgi_params;
uwsgi_pass 127.0.0.1:5000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment