Skip to content

Commit 700cd34

Browse files
mrsdizzietechknowlogick
authored andcommitted
Fix regression in reverse proxy documentation (#7634)
From Apache: AllowEncodedSlashes not allowed in <Proxy> context Move this out of <Proxy> block Fixes #7632
1 parent cdaf9a5 commit 700cd34

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/content/doc/usage/reverse-proxies.en-us.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ In case you already have a site, and you want Gitea to share the domain name, yo
7171
<Proxy *>
7272
Order allow,deny
7373
Allow from all
74-
AllowEncodedSlashes NoDecode
7574
</Proxy>
76-
77-
ProxyPass /git http://localhost:3000 nocanon # Note: no trailing slash after either /git or port
78-
ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port
75+
AllowEncodedSlashes NoDecode
76+
# Note: no trailing slash after either /git or port
77+
ProxyPass /git http://localhost:3000 nocanon
78+
ProxyPassReverse /git http://localhost:3000
7979
</VirtualHost>
8080
```
8181

docs/content/doc/usage/reverse-proxies.zh-cn.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ server {
7272
<Proxy *>
7373
Order allow,deny
7474
Allow from all
75-
AllowEncodedSlashes NoDecode
7675
</Proxy>
77-
78-
ProxyPass /git http://localhost:3000 nocanon # Note: no trailing slash after either /git or port
79-
ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port
76+
AllowEncodedSlashes NoDecode
77+
# Note: no trailing slash after either /git or port
78+
ProxyPass /git http://localhost:3000 nocanon
79+
ProxyPassReverse /git http://localhost:3000
8080
</VirtualHost>
8181
```
8282

0 commit comments

Comments
 (0)