Created
July 4, 2011 18:07
-
-
Save jyr/1063721 to your computer and use it in GitHub Desktop.
Flask on nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name flask.local; | |
root /Applications/MNPP/htdocs/flask; | |
#location = / { rewrite ^ /flask/; } | |
location / { | |
try_files $uri @flask; | |
} | |
location @flask { | |
#location / { | |
include uwsgi_params; | |
uwsgi_pass uwsgiapps; | |
uwsgi_param SCRIPT_NAME /Applications/MNPP/htdocs/flask; | |
#uwsgi_param SCRIPT_NAME /flask; | |
#uwsgi_param UWSGI_CHDIR /Applications/MNPP/htdocs/flask; | |
#uwsgi_param UWSGI_PYHOME /Applications/MNPP/Library/python26; | |
#uwsgi_param UWSGI_SCRIPT index; | |
uwsgi_modifier1 30; | |
} | |
access_log /Applications/MNPP/logs/nginx/flask.local.access.log; | |
error_log /Applications/MNPP/logs/nginx/flask.local.error.log; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment