1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 02:38:35 +00:00

Specify using AllowEncodedSlashes and nocanon for httpd (#7540)

When using wiki page names that include a slash
behind a Apache HTTPD reverse proxy,
AllowEncodedSlashes NoDecode
and appending nocanon to the ProxyPass
directive is required. This commit adds that
information to the documentation.

Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
Gary Kim
2019-07-20 18:44:53 +00:00
committed by Lauris BH
parent 61ad048041
commit cc384d767e
2 changed files with 8 additions and 4 deletions

View File

@@ -54,7 +54,8 @@ server {
...
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://localhost:3000/
AllowEncodedSlashes NoDecode
ProxyPass / http://localhost:3000/ nocanon
ProxyPassReverse / http://localhost:3000/
</VirtualHost>
```
@@ -71,9 +72,10 @@ server {
<Proxy *>
Order allow,deny
Allow from all
AllowEncodedSlashes NoDecode
</Proxy>
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
</VirtualHost>
```