diff options
author | mrsdizzie <info@mrsdizzie.com> | 2019-07-26 18:09:12 -0400 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-07-26 18:09:12 -0400 |
commit | 700cd346fad3a0bed203bfb032f7b4bc9d1f2551 (patch) | |
tree | 8fd794c7314c22894701899cbcb245efab6a6355 /docs | |
parent | cdaf9a5ef5b71a6ddaa8f53fca2aac619203ff68 (diff) | |
download | gitea-700cd346fad3a0bed203bfb032f7b4bc9d1f2551.tar.gz gitea-700cd346fad3a0bed203bfb032f7b4bc9d1f2551.zip |
Fix regression in reverse proxy documentation (#7634)
From Apache: AllowEncodedSlashes not allowed in <Proxy> context
Move this out of <Proxy> block
Fixes #7632
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/doc/usage/reverse-proxies.en-us.md | 8 | ||||
-rw-r--r-- | docs/content/doc/usage/reverse-proxies.zh-cn.md | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/docs/content/doc/usage/reverse-proxies.en-us.md b/docs/content/doc/usage/reverse-proxies.en-us.md index 24fb16e364..47a5b95572 100644 --- a/docs/content/doc/usage/reverse-proxies.en-us.md +++ b/docs/content/doc/usage/reverse-proxies.en-us.md @@ -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> ``` diff --git a/docs/content/doc/usage/reverse-proxies.zh-cn.md b/docs/content/doc/usage/reverse-proxies.zh-cn.md index 189a18281c..f52adccbbe 100644 --- a/docs/content/doc/usage/reverse-proxies.zh-cn.md +++ b/docs/content/doc/usage/reverse-proxies.zh-cn.md @@ -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> ``` |