By atrapp
I have analyzed all previous answers to this question and nothing is helping me. I have a django and nginx installation on a Ubuntu 16.04 droplet.
Here is the snippet from my /etc/nginx/sites-available/ , which also is linked to the /sites-enabled directory
server {
listen 80;
server_name **my.droplet.IP.address**;
charset utf-8;
client_max_body_size 10m;
client_body_buffer_size 128k;
# serve static files
location /static/ {
alias /home/**app-name**/app/static/;
}
location /home/ {
include proxy_params;
proxy_pass http://unix:/home/**app-name**/django.sock;
}
}
If someone could please help me, everything seems to be pointing to the right folder, ironically I am trying to learn django but I can’t even get it installed right on the server!
I will be pending this thread so if any more information is needed please let me know!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, After editing the conf file did you restart nginx?
sudo service nginx restart
when you delted the defualt link do you make a new conf file?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.