Apache2 역방향 프록시 HTTP + WWS 페이지

Apache2 역방향 프록시 HTTP + WWS 페이지

프리랜서로서 나는 네트워크가 웹 Whatsapp 페이지를 차단하는 사무실에 와서 그러한 상황에 대비하여 나만의 개인 역방향 프록시를 설정하려고 노력하고 있습니다. 지금까지 https 페이지를 역방향 프록시할 수 있었지만 사이트에 포함된 웹소켓 연결에 문제가 있습니다. Google Chrome 브라우저에서 wss://web.whatsapp.com/ws에 대해 'HTTP/1.1 403 Forbidden' 메시지가 표시됩니다. Google에서 몇 가지 히트 항목을 검색하고 읽었지만 여전히 작동하지 않습니다. .

일부 환경 정보(보안상의 이유로 도메인 이름과 인증서 일련번호를 마스킹했습니다):

아파치 버전 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

관련 정보