|
本帖最后由 追影 于 2021-8-14 14:28 编辑
1:开启module- LoadModule proxy_module modules/mod_proxy.so
- LoadModule proxy_http_module modules/mod_proxy_http.so
- LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
复制代码
2:httpd-ssl.conf虚拟主机配置修改
- SSLEngine on
- SSLProtocol all -SSLv2 -SSLv3
- SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM
- SSLCertificateFile "D:/xampp/cert/qianxun.damicms.com-crt.pem"
- SSLCertificateKeyFile "D:/xampp/cert/qianxun.damicms.com-key.pem"
- SSLCertificateChainFile "D:/xampp/cert/qianxun.damicms.com-chain.pem"
- <FilesMatch "\.(cgi|shtml|phtml|php)$">
- SSLOptions +StdEnvVars
- </FilesMatch>
- <Directory "/xampp/apache/cgi-bin">
- SSLOptions +StdEnvVars
- </Directory>
- <Directory "D:/web/qianxun">
- Options -Indexes +SymLinksIfOwnerMatch
- AllowOverride all
- Order allow,deny
- Allow from All
- DirectoryIndex index.htm index.html index.php default.php
- </Directory>
- RewriteEngine on
- RewriteCond %{HTTP:Upgrade} websocket [NC]
- RewriteCond %{HTTP:Connection} upgrade [NC]
- RewriteRule ^/?(.*) "ws://127.0.0.1:1207/$1" [P,L]
- SSLProxyEngine on
- ProxyPass /wss ws://服务器IP:1207
- ProxyPassReverse /wss wss://域名/danmu
复制代码
客户端连接地址 就是
|
|