ソースを参照

append websocket upgrade rule to apache example config

pull/4522/head
mcnesium 8ヶ月前
コミット
07feac1e40
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 7D6CC73E428F633F
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 ProxyRequests Off
ProxyVia On ProxyVia On
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME} 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 AllowEncodedSlashes NoDecode
ProxyPass / http://127.0.0.1:81/ retry=0 nocanon ProxyPass / http://127.0.0.1:81/ retry=0 nocanon


読み込み中…
キャンセル
保存