stibe88
Goto Top

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

Content-Key: 569526

Url: https://administrator.de/contentid/569526

Ausgedruckt am: 28.03.2024 um 19:03 Uhr

Mitglied: tomolpi
tomolpi 05.05.2020 um 12:32:42 Uhr
Goto Top
Hi,

offensichtlich fehlt ein A Record - steht doch da. Hast du eine Domain, die du absichern kannst?

Grüße

tomolpi
Mitglied: Stibe88
Stibe88 05.05.2020 um 13:21:40 Uhr
Goto Top
Hallo Tomolpi

Was für einen A Record? Bei meinem Hoster habe ich einen A Record erstellt.

Host: meine subdomain
Eintragstype: A
Wert: WAN IP
Mitglied: Dani
Dani 05.05.2020 aktualisiert um 13:24:59 Uhr
Goto Top
Moin,
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.


Gruß,
Dani
Mitglied: Stibe88
Stibe88 05.05.2020 um 13:33:05 Uhr
Goto Top
Hallo Dani

Was meinst Du mit LE?
Mitglied: SlainteMhath
SlainteMhath 05.05.2020 um 15:09:30 Uhr
Goto Top
Was meinst Du mit LE?
Let's Encrypt
Mitglied: Stibe88
Stibe88 05.05.2020 um 15:16:40 Uhr
Goto Top
Und wie kann ich dies beheben? Oder Kann dies nur der Hosting-Anbieter beheben?
Mitglied: Dani
Dani 05.05.2020 um 15:45:58 Uhr
Goto Top
Moin,
ist der Apache gleichzeitig der Reverse Proxy oder ist der Apache der Webserver auf dem Nextcloud läuft?! Je nachdem bist du ständig.


Gruß,
Dani
Mitglied: Stibe88
Stibe88 05.05.2020 um 16:08:44 Uhr
Goto Top
Der Apache Reverse Proxy und der Nextcloud ist je eine separate VM.
Mitglied: Dani
Dani 05.05.2020 aktualisiert um 20:40:06 Uhr
Goto Top
Moin,
d.h. du hast den obengenannten Befehl auf der VM mit dem Reverse Proxy ausgeführt? Ja, dann sollte es eigentlich gehen. Wenn nicht, dann hast du ein logisches Problem. DNS != IP-Adresse.


Gruß,
Dani