A
A
Andrey2016-08-05 08:17:58
Django
Andrey, 2016-08-05 08:17:58

Why does the left site open when opening a domain?

Deployed a Django project with gunicorn.
In the nginx settings I specified:

server {
    listen 80;
    server_name product12.ru *.product12.ru;
    access_log  /var/log/nginx/ubot.log;

    location /static/ {
        root /opt/ubot/UBot/;
        expires 30d;
    }

    location / {
        proxy_pass http://127.0.0.1:8048; 
        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;
    }
  }

But the site opens, the configuration file of which is the first in the list in the /etc/nginx/sites-available folder.
Tell me what could be the problem?
PS Tried sudo service nginx restart - doesn't help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2016-08-05
@andreysharypov

Has the symlink in /etc/nginx/sites-enabled been created?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question