Apache certbot Invalid host in redirect target
Hallo zusammen
Ich wollte soeben einen Reverseproxy installieren. Dies funktioniert auch, bis auf den certbot. Ich konnte diesen installieren, wenn ich nun den Befehl certbot --apache eingebe kann ich meine subdomain auswählen. nach der Auswahl, bekomme ich jedoch folgenden Fehler:
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: XXXX.XXX.com
Type: connection
Detail: Fetching
http://WAN IP/.well-known/acme-challenge/q1zciJTD-GOKvtI5QVV1j86TbwCw2o ...:
Invalid host in redirect target "WAN IP". Only domain names
are supported, not IP addresses
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. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
Die WAN IP stimmt mit dem von meinem Provider überein. Ich komme auch auf mein NextCloud über den ReverseProxy. Natürlich nur über HTTP, da ich ja kein Zertifikat machen kann mit dem Certbot.
Kann mir da jemand behilflich sein?
Vielen Dank schon Mal im Voraus.
Liebe Grüsse
Stibe
Ich wollte soeben einen Reverseproxy installieren. Dies funktioniert auch, bis auf den certbot. Ich konnte diesen installieren, wenn ich nun den Befehl certbot --apache eingebe kann ich meine subdomain auswählen. nach der Auswahl, bekomme ich jedoch folgenden Fehler:
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: XXXX.XXX.com
Type: connection
Detail: Fetching
http://WAN IP/.well-known/acme-challenge/q1zciJTD-GOKvtI5QVV1j86TbwCw2o ...:
Invalid host in redirect target "WAN IP". Only domain names
are supported, not IP addresses
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. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
Die WAN IP stimmt mit dem von meinem Provider überein. Ich komme auch auf mein NextCloud über den ReverseProxy. Natürlich nur über HTTP, da ich ja kein Zertifikat machen kann mit dem Certbot.
Kann mir da jemand behilflich sein?
Vielen Dank schon Mal im Voraus.
Liebe Grüsse
Stibe
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 569526
Url: https://administrator.de/forum/apache-certbot-invalid-host-in-redirect-target-569526.html
Ausgedruckt am: 21.04.2025 um 14:04 Uhr
9 Kommentare
Neuester Kommentar
Moin,
Gruß,
Dani
http://WAN IP/.well-known/acme-challenge/q1zciJTD-GOKvtI5QVV1j86TbwCw2o ...:
Invalid host in redirect target "WAN IP". Only domain names
are supported, not IP addresses
aus welchen Gründen auch immer, wird an LE die IP-Adresse und nicht die Domain übermittelt. Meiner Meinung nach deutet dies daraufhin, dass deine Webserver Konfiguration das Problem ist. Und zwar dahingehend, dass LE die IP-Adresse des Reverse Proxy sieht und nicht die des nachgelagerten Servers.Invalid host in redirect target "WAN IP". Only domain names
are supported, not IP addresses
Gruß,
Dani