Skip to content

Instantly share code, notes, and snippets.

@Alireza2n
Created August 31, 2018 15:06
Show Gist options
  • Save Alireza2n/bede61acacc6d7e331c719c3a7622753 to your computer and use it in GitHub Desktop.
Save Alireza2n/bede61acacc6d7e331c719c3a7622753 to your computer and use it in GitHub Desktop.
sample-nginx-config-django
server {
listen 80;
server_name ABCD.COM; #Replace with own domain
charset utf-8;
server_tokens off;
location /static/ {
alias /home/alireza/my-django-app/static/; # Path to your django static files folder
}
location / {
include uwsgi_params;
uwsgi_pass unix:///run/uwsgi/app/my-django-app/socket; # This is the default path on ubuntu and debian.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment