作為自由工作者,我冒犯了網路封鎖網路 Whatsapp 頁面的辦公室,我正在嘗試為這些情況設定自己的私人反向代理。到目前為止,我已經能夠反向代理 https 頁面,但我在使用嵌入在網站中的 websocket 連線時遇到了一些問題。在我的Google Chrome 瀏覽器中,我收到wss://web.whatsapp.com/ws 的「HTTP/1.1 403 Forbidden」。它工作。
一些環境資訊(出於安全原因,我封鎖了我的網域和憑證序號):
阿帕契版本 2.4.39
載入的模組:
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)
虛擬主機配置:
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
日誌結果 1 頁加載
Because of possible spam notification i am sharing this with a link
https://www.codepile.net/pile/QDL8k9DR