File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,8 @@ server {
155155## Apache
156156
157157```
158- ProxyPass "/stash" "http://127.0.0.1:9999"
158+ # if using apache < 2.4.47, remove upgrade=websocket
159+ ProxyPass "/stash" "http://127.0.0.1:9999" upgrade=websocket
159160ProxyPassReverse "/stash" "http://127.0.0.1:9999"
160161RequestHeader setIfEmpty X-Forwarded-Prefix "/stash"
161162ProxyPreserveHost on
165166ServerName example.com
166167ServerAlias stash.example.com
167168
168- # to enable websockets
169- RewriteEngine on
170- RewriteCond %{HTTP:Upgrade} websocket [NC]
171- RewriteCond %{HTTP:Connection} upgrade [NC]
172- RewriteRule ^/?stash/(.*) "ws://127.0.0.1:9999/$1" [P,L]
169+ # to enable websockets for apache < 2.4.47
170+ # RewriteEngine on
171+ # RewriteCond %{HTTP:Upgrade} websocket [NC]
172+ # RewriteCond %{HTTP:Connection} upgrade [NC]
173+ # RewriteRule ^/?stash/(.*) "ws://127.0.0.1:9999/$1" [P,L]
173174
174175# to add SSL
175176SSLEngine on
You can’t perform that action at this time.
0 commit comments