Created
August 31, 2018 15:06
-
-
Save Alireza2n/bede61acacc6d7e331c719c3a7622753 to your computer and use it in GitHub Desktop.
sample-nginx-config-django
This file contains hidden or 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 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