重点需要在配置文件里面添加如下代码

RewriteEngine On
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:48838/$1 [P,L]
SSLProxyEngine On
ProxyPass /file http://127.0.0.1:48838/file
ProxyPassReverse /file http://127.0.0.1:48838/file

将端口和path改成自己的

标签: none

添加新评论