L
L
lleballex2020-08-14 12:17:01
Nginx
lleballex, 2020-08-14 12:17:01

Nginx - how to set your domain?

The VPS hosts the DRF + Vue.JS project , which runs through Nginx. Everything works great. I decided to tie all this to my domain. I made A entries pointing to the VPS ip, I specified the domain in the Nginx file , but the domain was not attached - the error cannot access the site. What am I doing wrong?
Here is the nginx file :

server {
        listen 80;
        server_name mydomain.ru

        location / {
                root /path/to/Vue;
                index index.html;
                try_files $uri $uri/ /index.html;
        }

        location /media/ {
                include proxy_params;
                proxy_pass http://unix:/.../gunicorn.sock;
        }

        location /api/ {
                include proxy_params;
                proxy_pass http://unix:/.../gunicorn.sock;
        }
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SKEPTIC, 2020-08-14
@lleballex

https://check-host.net here make a request for your domain and look at which ip the domain points to

A
alekssamos, 2020-08-15
@alekssamos

Waited 24 hours? Or how much is there? To change DNS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question