Skip to content

Commit 7a611e9

Browse files
authored
Update apache instructions in reverse-proxy.md (#86)
1 parent 8fb2ae7 commit 7a611e9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

networking/reverse-proxy.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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
159160
ProxyPassReverse "/stash" "http://127.0.0.1:9999"
160161
RequestHeader setIfEmpty X-Forwarded-Prefix "/stash"
161162
ProxyPreserveHost on
@@ -165,11 +166,11 @@ ServerAdmin [email protected]
165166
ServerName example.com
166167
ServerAlias 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
175176
SSLEngine on

0 commit comments

Comments
 (0)