Answer the question
In order to leave comments, you need to log in
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;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question