Weiterleitung per Apache Reverse Proxy

Generelle Fragen zur Montage | Bedienung | Konfiguration des Controllers.
Benutzeravatar
DPerak
Beiträge: 404
Registriert: 26. Juni 2016, 13:09

Re: Weiterleitung per Apache Reverse Proxy

Beitrag von DPerak »

Ich hänge mich auch mal dran.
Mein Problem ist ähnlich, Reverse Proxy, weil die Procon in einem LTE Netz hängt. Heimnetzwerk und das LTE Netz über FritzVPN verbunden.
Tut teilweise, aber es hängt immer an den credentials.
viewtopic.php?f=34&t=541&p=16180&hilit= ... oxy#p16199
Apache Version 2.4.5, nicht besonders neu installiert.

Also eher downgrade als anheben in meinem Fall?
Viele Grüße

Benutzeravatar
Alex
Administrator
Beiträge: 9988
Registriert: 28. Mai 2014, 23:00

Re: Weiterleitung per Apache Reverse Proxy

Beitrag von Alex »

>>Also eher downgrade
Könnte man vielleicht mal versuchen... die config von oben funktioniert bei mir bei einem 2.22
Kann aber nicht sagen ob der Rest der Apache config auch noch was damit zu tun hat...

ToS
Beiträge: 28
Registriert: 7. Oktober 2020, 12:21

Re: Weiterleitung per Apache Reverse Proxy

Beitrag von ToS »

Also mit dem Apachen bekomme ich das nicht hin.
Hab ein frisches Testsystem, Apache drauf, nur den Reverse Proxy aktiviert, nix weiter konfiguriert.
Wieder nichts, 400.

Code: Alles auswählen

apache2 -v
Server version: Apache/2.4.38 (Raspbian)

uname -a
Linux raspberrypi 5.4.83-v7+ #1379 SMP Mon Dec 14 13:08:57 GMT 2020 armv7l GNU/Linux

cat /etc/apache2/sites-enabled/000-default.conf |grep -v \#
<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        ProxyPreserveHost Off
        ProxyPass / http://192.168.0.90:80/
        ProxyPassReverse / http://192.168.0.90:80/
        ServerName localhost



        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

ls -la /etc/apache2/mods-enabled/
insgesamt 8
drwxr-xr-x 2 root root 4096 Feb  5 17:07 .
drwxr-xr-x 8 root root 4096 Feb  5 17:01 ..
lrwxrwxrwx 1 root root   36 Feb  5 17:01 access_compat.load -> ../mods-available/access_compat.load
lrwxrwxrwx 1 root root   28 Feb  5 17:01 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root   28 Feb  5 17:01 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root   33 Feb  5 17:01 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root   33 Feb  5 17:01 authn_core.load -> ../mods-available/authn_core.load
lrwxrwxrwx 1 root root   33 Feb  5 17:01 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root   33 Feb  5 17:01 authz_core.load -> ../mods-available/authz_core.load
lrwxrwxrwx 1 root root   33 Feb  5 17:01 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root   33 Feb  5 17:01 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root   32 Feb  5 17:01 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root   32 Feb  5 17:01 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root   30 Feb  5 17:01 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root   30 Feb  5 17:01 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root   26 Feb  5 17:01 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root   26 Feb  5 17:01 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root   26 Feb  5 17:01 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root   29 Feb  5 17:01 filter.load -> ../mods-available/filter.load
lrwxrwxrwx 1 root root   27 Feb  5 17:01 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root   27 Feb  5 17:01 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root   32 Feb  5 17:01 mpm_event.conf -> ../mods-available/mpm_event.conf
lrwxrwxrwx 1 root root   32 Feb  5 17:01 mpm_event.load -> ../mods-available/mpm_event.load
lrwxrwxrwx 1 root root   34 Feb  5 17:01 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root   34 Feb  5 17:01 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root   37 Feb  5 17:07 proxy_balancer.conf -> ../mods-available/proxy_balancer.conf
lrwxrwxrwx 1 root root   37 Feb  5 17:07 proxy_balancer.load -> ../mods-available/proxy_balancer.load
lrwxrwxrwx 1 root root   28 Feb  5 17:07 proxy.conf -> ../mods-available/proxy.conf
lrwxrwxrwx 1 root root   33 Feb  5 17:07 proxy_html.conf -> ../mods-available/proxy_html.conf
lrwxrwxrwx 1 root root   33 Feb  5 17:07 proxy_html.load -> ../mods-available/proxy_html.load
lrwxrwxrwx 1 root root   33 Feb  5 17:07 proxy_http.load -> ../mods-available/proxy_http.load
lrwxrwxrwx 1 root root   28 Feb  5 17:07 proxy.load -> ../mods-available/proxy.load
lrwxrwxrwx 1 root root   33 Feb  5 17:01 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root   33 Feb  5 17:01 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root   31 Feb  5 17:01 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root   31 Feb  5 17:01 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root   34 Feb  5 17:07 slotmem_shm.load -> ../mods-available/slotmem_shm.load
lrwxrwxrwx 1 root root   29 Feb  5 17:01 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root   29 Feb  5 17:01 status.load -> ../mods-available/status.load
lrwxrwxrwx 1 root root   30 Feb  5 17:07 xml2enc.load -> ../mods-available/xml2enc.load
Hab da auch keine Lust drauf, irgendwas mit nur einer bestimmten Version zum laufen zu bringen.
Oder ich hab da noch irgendwo einen Knoten drin.

Noch einer eine Idee?

Benutzeravatar
DPerak
Beiträge: 404
Registriert: 26. Juni 2016, 13:09

Re: Weiterleitung per Apache Reverse Proxy

Beitrag von DPerak »

Da bin ich raus. Kann man nicht irgendwie mitschneiden, was da nicht richtig kommuniziert wird?

Benutzeravatar
Alex
Administrator
Beiträge: 9988
Registriert: 28. Mai 2014, 23:00

Re: Weiterleitung per Apache Reverse Proxy

Beitrag von Alex »

Man könnte wohl mit Wireshark rummachen. Aber ob das am Ende dann zielführend wird und man wirklich was sieht... hm...

ToS
Beiträge: 28
Registriert: 7. Oktober 2020, 12:21

Re: Weiterleitung per Apache Reverse Proxy

Beitrag von ToS »

Hmm, Wireshark ist stark, hab ich schon einge Sachen gemacht, aber da wüsste ich jetzt auch nicht wie ich das anstellen soll. Ich könnte es mal den Azubis als Projekt auftragen :lol:
Hab mit einem Webentwickler hier bei uns gesprochen, der war etwas reserviert mit Apache und Reverse Proxy... Der meinte, nimm nginx dafür...

Ich denke, ich guck mir mal nginx im Detail an, vielleicht bekomm ich da mein Zeugs zum laufen. Als Reverse Proxy klappt es mit nginx auf jeden Fall so wie es soll.
Falls ich doch noch was rausbekomme, schreib ichs auf jeden Fall hier.