Merge pull request #1580 from nextcloud/apache-reverse-proxy-docs

improve the apache reverse proxy documentation
This commit is contained in:
Simon L 2022-12-23 22:39:03 +01:00 committed by GitHub
commit 34854ba461
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,10 +46,11 @@ Add this as a new Apache site config:
RewriteEngine On RewriteEngine On
ProxyPreserveHost On ProxyPreserveHost On
AllowEncodedSlashes NoDecode AllowEncodedSlashes NoDecode
ProxyPass / http://localhost:11000/ ProxyPass / http://localhost:11000/ nocanon
RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC] RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://localhost:11000/$1" [P,QSA,B=?:;] RewriteCond %{THE_REQUEST} "^[a-zA-Z]+ /(.*) HTTP/\d+(\.\d+)?$"
RewriteRule .? "ws://localhost:11000/%1" [P,L]
# Enable h2, h2c and http1.1 # Enable h2, h2c and http1.1
Protocols h2 h2c http/1.1 Protocols h2 h2c http/1.1