Skip to content

Instantly share code, notes, and snippets.

@jimrybarski
Last active December 22, 2015 18:29
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 jimrybarski/6513068 to your computer and use it in GitHub Desktop.
Save jimrybarski/6513068 to your computer and use it in GitHub Desktop.
Nginx site configuration
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