Reverse Proxy

Diskussionen zur Bedienung von KeyHelp.
Post Reply
Dreandor
Posts: 35
Joined: Mon 7. Mar 2022, 10:53

Reverse Proxy

Post 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
User avatar
MLan
Posts: 483
Joined: Wed 20. Sep 2017, 23:05
Location: @home

Re: Reverse Proxy

Post by MLan »

Code: Select all

a2enmod proxy
könnte dir hier vermutlich weiterhelfen.
User avatar
24unix
Posts: 2037
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Reverse Proxy

Post 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.
Cheers Micha
--
A Windows user reinstalls software every few weeks.
A Linux user reinstalls software every few weeks.
The difference is with Linux the version numbers change.
Dreandor
Posts: 35
Joined: Mon 7. Mar 2022, 10:53

Re: Reverse Proxy

Post 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.
User avatar
24unix
Posts: 2037
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Reverse Proxy

Post by 24unix »

Cheers Micha
--
A Windows user reinstalls software every few weeks.
A Linux user reinstalls software every few weeks.
The difference is with Linux the version numbers change.
Dreandor
Posts: 35
Joined: Mon 7. Mar 2022, 10:53

Re: Reverse Proxy

Post by Dreandor »

24unix wrote: Mon 7. Mar 2022, 12:30 Hast Du hier mal geschaut:

https://stackoverflow.com/questions/239 ... -was-valid
Ja aber funktioniert immer noch nicht
User avatar
Tobi
Community Moderator
Posts: 3230
Joined: Thu 5. Jan 2017, 13:24

Re: Reverse Proxy

Post by Tobi »

Funktioniert denn der direkte Aufruf?
Zur Not kann man das mit wget auf der Kommandozeile überprüfen.
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
MLan
Posts: 483
Joined: Wed 20. Sep 2017, 23:05
Location: @home

Re: Reverse Proxy

Post 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/
Last edited by MLan on Mon 7. Mar 2022, 13:17, edited 1 time in total.
Dreandor
Posts: 35
Joined: Mon 7. Mar 2022, 10:53

Re: Reverse Proxy

Post 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.
User avatar
24unix
Posts: 2037
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Reverse Proxy

Post 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.
Cheers Micha
--
A Windows user reinstalls software every few weeks.
A Linux user reinstalls software every few weeks.
The difference is with Linux the version numbers change.
Dreandor
Posts: 35
Joined: Mon 7. Mar 2022, 10:53

Re: Reverse Proxy

Post 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
Post Reply