瀏覽代碼

append websocket upgrade rule to apache example config

pull/4524/head
mcnesium 6 月之前
committed by Slavi Pantaleev
父節點
當前提交
3462196eb3
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      examples/reverse-proxies/apache/matrix-domain.conf

+ 6
- 0
examples/reverse-proxies/apache/matrix-domain.conf 查看文件

@@ -33,6 +33,12 @@
ProxyRequests Off
ProxyVia On
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
ProxyTimeout 86400

RewriteEngine On
RewriteCond %{HTTP:Connection} Upgrade [NC]
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:81/$1 [P,L]

AllowEncodedSlashes NoDecode
ProxyPass / http://127.0.0.1:81/ retry=0 nocanon


Loading…
取消
儲存