Last active
December 22, 2015 18:29
-
-
Save jimrybarski/6513068 to your computer and use it in GitHub Desktop.
Nginx site configuration
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 example.com | |
*.example.com; | |
root /srv/www/myapp; | |
location / { | |
index index.html; | |
} | |
location /api/ { | |
include uwsgi_params; | |
uwsgi_pass unix:/tmp/uwsgi.myapp.socket; | |
uwsgi_param UWSGI_CHIDIR /srv/www/myapp; | |
uwsgi_param UWSGI_SCRIPT myapp; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment