Answer the question
In order to leave comments, you need to log in
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
https://check-host.net here make a request for your domain and look at which ip the domain points to
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question