Apache2 Reverse-Proxy HTTP + WWS-Seite

Apache2 Reverse-Proxy HTTP + WWS-Seite

Als Freiberufler komme ich oft in Büros, in denen das Netzwerk die WhatsApp-Webseite blockiert, und ich versuche, für solche Situationen meinen eigenen privaten Reverse-Proxy einzurichten. Bisher konnte ich die https-Seite per Reverse-Proxy verwenden, habe aber Probleme mit der in die Site eingebetteten WebSocket-Verbindung. In meinem Google Chrome-Browser erhalte ich für wss://web.whatsapp.com/ws die Meldung „HTTP/1.1 403 Forbidden“. Ich habe bei Google gesucht und einige Treffer dazu gelesen, aber es funktioniert immer noch nicht.

Einige Umgebungsinformationen (aus Sicherheitsgründen habe ich meinen Domänennamen und die Zertifikatsseriennummer maskiert):

Apache Version 2.4.39

Geladene Module:

http_module (static), proxy_module (shared), proxy_ajp_module (shared), proxy_balancer_module (shared), proxy_connect_module (shared), proxy_html_module (shared), proxy_http_module (shared), proxy_wstunnel_module (shared), rewrite_module (shared), ssl_module (shared)

Vhost-Konf.:

SSLProxyEngine on
SSLProxyVerify none 
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off


ServerName sub.mydomain.com
ProxyPass /ws/ ws://web.whatsapp.com/ws/
ProxyPassReverse /ws/ ws://web.whatsapp.com/ws/
ProxyPass / https://web.whatsapp.com/
ProxyPassReverse / https://web.whatsapp.com/
ProxyRequests off

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com/privkey.pem

ErrorLog /var/log/apache2/sub_mydomain_com_error.log
LogLevel debug

Log-Ergebnisse 1 Seite laden

Because of possible spam notification i am sharing this with a link
https://www.codepile.net/pile/QDL8k9DR

verwandte Informationen