Created
January 18, 2021 11:11
-
-
Save sreevardhanreddi/ebf3fd7cb66cd6729e11ed8d722e7fc5 to your computer and use it in GitHub Desktop.
nginx_file_serve
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
sudo touch /etc/nginx/sites-available/django | |
sudo ln -s /etc/nginx/sites-available/django /etc/nginx/sites-enabled | |
server { | |
# hostname or ip or multiple separated by spaces | |
server_name localhost example.com 192.168.1.1; #change to your setting | |
location / { | |
root /home/techcee/scrapbook/local/lib/python2.7/site-packages/django/__init__.pyc/; | |
} | |
# use alias | |
} | |
sudo service nginx reload | |
sudo systemctl restart nginx.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment