Здравствуйте !
Есть хостинг на vds selectel
Купил домен на porkbun.com
nuruddin.dev
в панели porkbun сделал запись
NAMESERVERS
ns1.vscale.io
ns2.vscale.io
запись днс
Конфиг nginx
conf.d/nuruddin.dev.conf
server {
listen 80;
server_name nuruddin.dev www.nuruddin.dev;
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /api/ {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:5000/;
}
location /uploads/ {
proxy_pass http://localhost:5000/uploads/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Проблемы следующие:
- при наборе
www.nuruddin.dev переводит на
https://www.nuruddin.dev/ - те с http на https
- ничего не открывается
при попытке прописать ssl через cert bot выводит ошибку:
root@silver-balfrin:~# sudo certbot --nginx -d nuruddin.dev -d www.nuruddin.dev
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.nuruddin.dev
Waiting for verification...
Challenge failed for domain www.nuruddin.dev
http-01 challenge for www.nuruddin.dev
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: www.nuruddin.dev
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for www.nuruddin.dev -
check that a DNS record exists for this domain; DNS problem:
NXDOMAIN looking up AAAA for www.nuruddin.dev - check that a DNS
record exists for this domain