Re: Hilfe beim ProxyPass/ProxyPassReverse (Apache2) erforderlich [gelöst]
Die Lösung habe ich bei den APACHEFRIENDS bekommen und möchte sie auch
veröffentlichen, denn mit dieser Konfiguration klappt es problemlos:
Auszug aus der /etc/apache2/sites-available/example.com.conf:
##########################################
# TVheadend
#########################################
<VirtualHost *:80>
ServerName rekorder.example.com
ServerAdmin admin@zuhause.xx
RewriteEngine On
RewriteRule ^/(.*) https://rekorder.example.com/$1 [R=permanent,L]
</VirtualHost>
<VirtualHost *:443>
ServerName rekorder.example.com
SSLProxyEngine On
ProxyPreserveHost On
ProxyPass / http://rekorder.example.com:9981/
ProxyPassReverse / http://rekorder.example.com:9981/
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLEngine on
SSLCertificateKeyFile /etc/apache2/ssl/rekorder.key
SSLCertificateFile /etc/apache2/ssl/rekorder.cert
</VirtualHost>
und hier die /etc/hosts des Hauptrechners 192.168.1.113:
127.0.0.1 localhost
127.0.1.1 www.example.com Server
192.168.1.113 rekorder.example.com TVheadend
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Danke für die Unterstützung!!
Gruß aus der Ex-Heimat der CeBIT
Jochen
Reply to: