Apache2 Proxy Config Hilfe

Begonnen von Markus-Mech, 05 November 2018, 21:47:39

Vorheriges Thema - Nächstes Thema

Markus-Mech

Hallo,

ich möchte Fhem über einen Apache2 Proxy erreichbar machen, bekomme es aber nicht richtig hin, bzw. es läuft nur teilweise so wie ich möchte.

Zunächst mal die Komponenten die ich über Port 80 erreichbar mach will:
- Webcam Haustüre (192.168.0.116:8090)
- Heizungssteuerung (192.168.0.35:80)
- fhem (192.168.0.116:8083)
Über Port 80 weil bei uns in der Firma viele Ports gesperrt sind und ich später auf https umstellen möchte.

Meine Apache Config sieht so aus:
<VirtualHost *:80>
        ServerName http://xXXXy.myfritz.net:80
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

<Location /haus>
                #Für Logpoll = Websocket die Aufrufe umleiten
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /haus(.*)           ws://xXXXy.myfritz.net/haus$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /haus(.*)           http://xvXXXy.myfritz.net/haus$1 [P,L]

#       ProxyHTMLEnable On
ProxyPass "http://192.168.0.116:8083/fhem"
ProxyPassReverse "http://192.168.0.116:8083/fhem"
ProxyHTMLURLMap /        /fhem/
ProxyHTMLURLMap /fhem/     /fhem/
</Location>

<Location /haustuere>
        ProxyPass "http://192.168.0.116:8090"
        ProxyPassReverse "http://192.168.0.116:8090"
</Location>

<Location /heizung>
        ProxyPass "http://192.168.0.35:80"
        ProxyPassReverse "http://192.168.0.35:80"
</Location>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


Jetzt eine kurze Beschreibung was schon geht:
http://xvxxxy.myfritz.net/haustuere  -> zeigt wie erwartet das Webcam Bild an.
http://xvxxxy.myfritz.net/heizung  -> zeigt kurz eine Webseite an, dann springt die Adresszeile auf http://http://xXXXy.myfritz.net/http/index.html und Not Fond erscheint.
http://xvxxxy.myfritz.net/heizung/http/index.html -> Zeigt die Einstellungsseite der Heizung an.
http://xvxxxy.myfritz.net/haus -> Zeigt die Fhem webseite an allerdings ohne css, also ohne Formatierung.

Wer kann mir da weiterhelfen.