I am using certbot to activate HTTPS or basically get an SSL certificate.
Here is my nginx config file:
server {
listen 80 default_server
listen [::]:80 default_server
root /var/www/html
index index.html index.htm index.nginx-debian.html
server_name quotes.mirrorloops.com
location /{
try_files $uri $uri/ = 404
}
location /api {
proxy_pass http://localhost:3000
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
When I run: "sudo certbot --nginx"
I get the following error:
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for quotes.mirrorloops.com
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. quotes.mirrorloops.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://quotes.mirrorloops.com/.well-known/acme-challenge/5V8cknsLD8jWExIchmZiHuRDaZduIdLAw5rGJQIYtyM [184.168.131.241]: "\n\n\n\n Mirrorloop"IMPORTANT NOTES:
The following errors were reported by the server:
Domain: quotes.mirrorloops.com
Mirrorloop"
Type: unauthorized
Detail: Invalid response from
http://quotes.mirrorloops.com/.well-known/acme-challenge/5V8cknsLD8jWExIchmZiHuRDaZduIdLAw5rGJQIYtyM
[184.168.131.241]: "\n\n\n\nTo fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.