Hello, here is some information:
My domain is:
staging.sectorasegurador.es
I ran this command:
certbot/certbot \
certonly \
--webroot --webroot-path=/data/letsencrypt \
-d staging.sectorasegurador.es -d wwwstaging.sectorasegurador.es
It produced this output:
wp_sectorasegurador.staging is up-to-date
nginx is up-to-date
nginx: [warn] conflicting server name "staging.sectorasegurador.es" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "staging.sectorasegurador.es" on [::]:80, ignored
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for staging.sectorasegurador.es
http-01 challenge for www.staging.sectorasegurador.es
Using the webroot path /data/letsencrypt for all unmatched domains.
Waiting for verification...
Challenge failed for domain staging.sectorasegurador.es
Challenge failed for domain www.staging.sectorasegurador.es
http-01 challenge for staging.sectorasegurador.es
http-01 challenge for www.staging.sectorasegurador.es
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: staging.sectorasegurador.es
Type: unauthorized
Detail: Invalid response from https://yoursite.com/
[185.185.84.210]: "<!DOCTYPE html><html\nclass=\"no-overflow-y
avada-html-layout-wide\" lang=en-US prefix=\"og: http://ogp.me/ns#
fb: http://ogp.me/ns/"
Domain: www.staging.sectorasegurador.es
Type: unauthorized
Detail: Invalid response from https://yoursite.com/
[185.185.84.210]: "<!DOCTYPE html><html\nclass=\"no-overflow-y
avada-html-layout-wide\" lang=en-US prefix=\"og: http://ogp.me/ns#
fb: http://ogp.me/ns/"
To 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.
My web server is (include version):
Nginx 1.16
The operating system my web server runs on is (include version):
UBUNTU 18.04 LTS
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know):
yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no
I don’t understand why it is requesting to https://yoursite.com/. It doesn’t make any sense to me…
I wanted to add, that I’m using docker, being my website already reachable and containing a fresh Wordpress instance (I mean, empty database) so the homepage redirects to the process of installing Wordpress.
Right now I just placed a exit() function at the beginning of my index.php.
What am I missing here?