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>
 ```