mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-02-23 21:36:19 +08:00
Merge pull request #1236 from nextcloud/enh/noid/fix-apache
rework the apache reverse proxy documentation
This commit is contained in:
commit
c283c71362
1 changed files with 5 additions and 5 deletions
|
@ -41,14 +41,14 @@ Add this as a new Apache site config:
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ServerName <your-nc-domain>
|
ServerName <your-nc-domain>
|
||||||
|
|
||||||
# Reverse proxy
|
# Reverse proxy based on https://httpd.apache.org/docs/current/mod/mod_proxy_wstunnel.html
|
||||||
RewriteEngine On
|
RewriteEngine on
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
|
AllowEncodedSlashes NoDecode
|
||||||
|
ProxyPass / http://localhost:11000/
|
||||||
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,L]
|
RewriteRule ^/?(.*) "ws://localhost:11000/$1" [P,QSA,B=?:;]
|
||||||
ProxyPass / http://localhost:11000/
|
|
||||||
ProxyPassReverse / http://localhost:11000/
|
|
||||||
|
|
||||||
# Enable h2, h2c and http1.1
|
# Enable h2, h2c and http1.1
|
||||||
Protocols h2 h2c http/1.1
|
Protocols h2 h2c http/1.1
|
||||||
|
|
Loading…
Reference in a new issue