1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

Fix regression in reverse proxy documentation (#7634)

From Apache: AllowEncodedSlashes not allowed in <Proxy> context

Move this out of <Proxy> block

Fixes #7632
This commit is contained in:
mrsdizzie 2019-07-26 18:09:12 -04:00 committed by techknowlogick
parent cdaf9a5ef5
commit 700cd346fa
2 changed files with 8 additions and 8 deletions

View File

@ -71,11 +71,11 @@ In case you already have a site, and you want Gitea to share the domain name, yo
<Proxy *> <Proxy *>
Order allow,deny Order allow,deny
Allow from all Allow from all
AllowEncodedSlashes NoDecode
</Proxy> </Proxy>
AllowEncodedSlashes NoDecode
ProxyPass /git http://localhost:3000 nocanon # Note: no trailing slash after either /git or port # Note: no trailing slash after either /git or port
ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port ProxyPass /git http://localhost:3000 nocanon
ProxyPassReverse /git http://localhost:3000
</VirtualHost> </VirtualHost>
``` ```

View File

@ -72,11 +72,11 @@ server {
<Proxy *> <Proxy *>
Order allow,deny Order allow,deny
Allow from all Allow from all
AllowEncodedSlashes NoDecode
</Proxy> </Proxy>
AllowEncodedSlashes NoDecode
ProxyPass /git http://localhost:3000 nocanon # Note: no trailing slash after either /git or port # Note: no trailing slash after either /git or port
ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port ProxyPass /git http://localhost:3000 nocanon
ProxyPassReverse /git http://localhost:3000
</VirtualHost> </VirtualHost>
``` ```