Merge pull request #1236 from nextcloud/enh/noid/fix-apache

rework the apache reverse proxy documentation
This commit is contained in:
Simon L 2022-10-09 17:23:50 +02:00 committed by GitHub
commit c283c71362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,14 +41,14 @@ Add this as a new Apache site config:
<VirtualHost *:443>
ServerName <your-nc-domain>
# Reverse proxy
RewriteEngine On
# Reverse proxy based on https://httpd.apache.org/docs/current/mod/mod_proxy_wstunnel.html
RewriteEngine on
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
ProxyPass / http://localhost:11000/
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/(.*) "ws://localhost:11000/$1" [P,L]
ProxyPass / http://localhost:11000/
ProxyPassReverse / http://localhost:11000/
RewriteRule ^/?(.*) "ws://localhost:11000/$1" [P,QSA,B=?:;]
# Enable h2, h2c and http1.1
Protocols h2 h2c http/1.1