Hi! I am trying to get a certificate by using the nginx challenge. It is a reverse proxy. It worked for the first 2 domains, but the other ones started to fail.
Good to know; the standalone method does work. So it is not a DNS or network issue, that’s for sure.
The virtual host config that I use for this domain looks like this:
server {
server_name bilbo.realify.dev;
listen 80 http2;
listen [::]:80 http2;
# redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
return 301 https://$server_name$request_uri;
}
server {
server_name bilbo.realify.dev;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://xxx.xxx.xxx.xxx:xxxx/;
client_max_body_size 10M;
}
listen 443 ssl http2; // ssl config settings will be added by certbot later on
}
My domain is: bilbo.realify.dev
I ran this command: certbot --nginx -d bilbo.realify.dev
It produced this output:
[…]
Failed authorization procedure. bilbo.realify.dev (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://bilbo.realify.dev/.well-known/acme-challenge/NB6x53gKgPBQL7RUr3CcYPhdyCnwXOC0mW1PlaG3tVw: Server is speaking HTTP/2 over HTTP
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: bilbo.realify.dev
Type: connection
Detail: Fetching
http://bilbo.realify.dev/.well-known/acme-challenge/NB6x53gKgPBQL7RUr3CcYPhdyCnwXOC0mW1PlaG3tVw:
Server is speaking HTTP/2 over HTTP
[…]
My web server is (include version): Nginx (as a reverse proxy)
The operating system my web server runs on is (include version):
Ubuntu Server 18.04.
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
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
certbot 0.31.0