A
A
Andrey2016-05-17 17:15:25
Django
Andrey, 2016-05-17 17:15:25

Django opens wrong project at requested ip?

Installed django on the server (Ubuntu 14.04.4/nginx) following the recipe .
I uploaded the project, but the standard welcome page is still displayed at 109.234.36.120 (although urls, views and templates are already on the server).
The desired project is opened at 109.234.36.120:8000 and only while the terminal is running.
Configurations:

server {
    listen 80;
    server_name zakazatdostavku.ru *.zakazatdostavku.ru; #либо ip, либо доменное имя
    access_log  /var/log/nginx/example.log;

    location /static/ {
        root /opt/trucks/TRUCKS/;
        expires 30d;
    }

    location / {
        proxy_pass http://127.0.0.1:8000; 
        proxy_set_header Host $server_name;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
  }

Guys, tell me where to look for the cause?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antonov Dmitry, 2016-05-17
@BlackTrub

Perhaps your question has already been answered: How to link a domain, nginx + uwsgi + django?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question