home assistent - apache reverse proxy
2025-07-23 / 2025-08-02 | ||
Beste Methode für den Home Assistent im Docker.
apche reverse proxy
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName homeassistent.l337.l11
#ProxyPreserveHost On
#ProxyRequests off
SSLProxyEngine On
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyPass /api/websocket ws://192.168.5.45:8123/api/websocket
ProxyPassReverse /api/websocket ws://192.168.5.45:8123/api/websocket
ProxyPass / http://192.168.5.45:8123/
ProxyPassReverse / http://192.168.5.45:8123/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://192.168.5.45:8123/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://192.168.5.45:8123/$1 [P,L]
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/apache.crt
SSLCertificateKeyFile /etc/ssl/private/apache.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName www.l337.l11
ServerAlias l337.l11 *.l337.l11
. . .