THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

Fix regression in reverse proxy documentation (#7634)

From Apache: AllowEncodedSlashes not allowed in <Proxy> context

Move this out of <Proxy> block

Fixes #7632
master
mrsdizzie techknowlogick 6 months ago
parent
commit
700cd346fa
2 changed files with 8 additions and 8 deletions
  1. +4
    -4
      docs/content/doc/usage/reverse-proxies.en-us.md
  2. +4
    -4
      docs/content/doc/usage/reverse-proxies.zh-cn.md

+ 4
- 4
docs/content/doc/usage/reverse-proxies.en-us.md View File

@@ -71,11 +71,11 @@ In case you already have a site, and you want Gitea to share the domain name, yo
<Proxy *>
Order allow,deny
Allow from all
AllowEncodedSlashes NoDecode
</Proxy>

ProxyPass /git http://localhost:3000 nocanon # Note: no trailing slash after either /git or port
ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port
AllowEncodedSlashes NoDecode
# Note: no trailing slash after either /git or port
ProxyPass /git http://localhost:3000 nocanon
ProxyPassReverse /git http://localhost:3000
</VirtualHost>
```



+ 4
- 4
docs/content/doc/usage/reverse-proxies.zh-cn.md View File

@@ -72,11 +72,11 @@ server {
<Proxy *>
Order allow,deny
Allow from all
AllowEncodedSlashes NoDecode
</Proxy>

ProxyPass /git http://localhost:3000 nocanon # Note: no trailing slash after either /git or port
ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port
AllowEncodedSlashes NoDecode
# Note: no trailing slash after either /git or port
ProxyPass /git http://localhost:3000 nocanon
ProxyPassReverse /git http://localhost:3000
</VirtualHost>
```



Loading…
Cancel
Save