diff --git a/docs/content/doc/usage/reverse-proxies.en-us.md b/docs/content/doc/usage/reverse-proxies.en-us.md index d828d5b226..24fb16e364 100644 --- a/docs/content/doc/usage/reverse-proxies.en-us.md +++ b/docs/content/doc/usage/reverse-proxies.en-us.md @@ -53,7 +53,8 @@ If you want Apache HTTPD to serve your Gitea instance, you can add the following ... ProxyPreserveHost On ProxyRequests off - ProxyPass / http://localhost:3000/ + AllowEncodedSlashes NoDecode + ProxyPass / http://localhost:3000/ nocanon ProxyPassReverse / http://localhost:3000/ ``` @@ -70,9 +71,10 @@ In case you already have a site, and you want Gitea to share the domain name, yo Order allow,deny Allow from all + AllowEncodedSlashes NoDecode - ProxyPass /git http://localhost:3000 # Note: no trailing slash after either /git or port + 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 ``` diff --git a/docs/content/doc/usage/reverse-proxies.zh-cn.md b/docs/content/doc/usage/reverse-proxies.zh-cn.md index c3f5758c16..189a18281c 100644 --- a/docs/content/doc/usage/reverse-proxies.zh-cn.md +++ b/docs/content/doc/usage/reverse-proxies.zh-cn.md @@ -54,7 +54,8 @@ server { ... ProxyPreserveHost On ProxyRequests off - ProxyPass / http://localhost:3000/ + AllowEncodedSlashes NoDecode + ProxyPass / http://localhost:3000/ nocanon ProxyPassReverse / http://localhost:3000/ ``` @@ -71,9 +72,10 @@ server { Order allow,deny Allow from all + AllowEncodedSlashes NoDecode - ProxyPass /git http://localhost:3000 # Note: no trailing slash after either /git or port + 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 ```