Page 1 of 1
Reverse Proxy
Posted: Mon 7. Mar 2022, 10:57
by Dreandor
Hallo folgendes Problem:
Ich will für eine Subdomain ein Reverse Proxy auf Port 25000 einrichten. Je doch funktioniert das nicht wie gewünscht. Ich habe verschieden Lösungen mir schon angeschaut und weiß mir nicht mehr zu helfen. Eventuell hat jemand hier eine Lösung.
Ich habe bereits bei der Subdomain > Apache-Einstellungen folgendes hinterlegt:
Code: Select all
Anweisung für HTTP:
ProxyPass / http://127.0.0.1:25000/
ProxyPassReverse / http://127.0.0.1:25000/
Code: Select all
Anweisung für HTTPS:
ProxyPass / https://127.0.0.1:25000/
ProxyPassReverse / https://127.0.0.1:25000/
Ich bekomme nur als Error auf der Website:
Code: Select all
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Beste Grüße
Dreandor
Re: Reverse Proxy
Posted: Mon 7. Mar 2022, 11:36
by MLan
könnte dir hier vermutlich weiterhelfen.
Re: Reverse Proxy
Posted: Mon 7. Mar 2022, 11:43
by 24unix
Dreandor wrote: ↑Mon 7. Mar 2022, 10:57
Code: Select all
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Schau in die error.log des vHost.
Re: Reverse Proxy
Posted: Mon 7. Mar 2022, 12:23
by Dreandor
mod_proxy ist schon aktiviert.
Log sagt:
Code: Select all
[Mon Mar 07 10:52:32.630473 2022] [proxy:warn] [pid 32528:tid 139991076218624] [client xxx.xxx.xxx.xxx:17437] AH01144: No protocol handler was valid for the URL / (scheme 'http'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
Re: Reverse Proxy
Posted: Mon 7. Mar 2022, 12:30
by 24unix
Re: Reverse Proxy
Posted: Mon 7. Mar 2022, 12:56
by Dreandor
Ja aber funktioniert immer noch nicht
Re: Reverse Proxy
Posted: Mon 7. Mar 2022, 13:06
by Tobi
Funktioniert denn der direkte Aufruf?
Zur Not kann man das mit wget auf der Kommandozeile überprüfen.
Re: Reverse Proxy
Posted: Mon 7. Mar 2022, 13:13
by MLan
Dreandor wrote: ↑Mon 7. Mar 2022, 10:57
Code: Select all
Anweisung für HTTP:
ProxyPass / http://127.0.0.1:25000/
ProxyPassReverse / http://127.0.0.1:25000/
Code: Select all
Anweisung für HTTPS:
ProxyPass / https://127.0.0.1:25000/
ProxyPassReverse / https://127.0.0.1:25000/
das ist falsch
richtig wäre für http und https
Code: Select all
ProxyPass / http://127.0.0.1:25000/
ProxyPassReverse / http://127.0.0.1:25000/
Re: Reverse Proxy
Posted: Mon 7. Mar 2022, 13:14
by Dreandor
Über wget mit https://
Code: Select all
GnuTLS: An unexpected TLS packet was received.
Unable to establish SSL connection.
Über HTTP funktioniert der Aufruf. Soll aber halt über HTTPS laufen.
Re: Reverse Proxy
Posted: Mon 7. Mar 2022, 13:17
by 24unix
Dreandor wrote: ↑Mon 7. Mar 2022, 13:14
Soll aber halt über HTTPS laufen.
Warum?
Reicht doch, wenn er „von vorne“ via https erreichbar ist. Den proxy musst Du nicht zusätzlich verschlüsseln.
Re: Reverse Proxy
Posted: Mon 7. Mar 2022, 13:17
by Dreandor
MLan wrote: ↑Mon 7. Mar 2022, 13:13
Dreandor wrote: ↑Mon 7. Mar 2022, 10:57
Code: Select all
Anweisung für HTTP:
ProxyPass / http://127.0.0.1:25000/
ProxyPassReverse / http://127.0.0.1:25000/
Code: Select all
Anweisung für HTTPS:
ProxyPass / https://127.0.0.1:25000/
ProxyPassReverse / https://127.0.0.1:25000/
das ist fsalsch
richtig wäre für http und https
Code: Select all
ProxyPass / http://127.0.0.1:25000/
ProxyPassReverse / http://127.0.0.1:25000/
Jetzt komm ich auf die Seite aber kann mich nicht einloggen. Muss jetzt mal mit dem Hersteller schreiben. Danke