Pārlūkot izejas kodu

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>
tags/v1.10.0-rc1
Gary Kim pirms 4 gadiem
vecāks
revīzija
cc384d767e

+ 4
- 2
docs/content/doc/usage/reverse-proxies.en-us.md Parādīt failu

... ...
ProxyPreserveHost On ProxyPreserveHost On
ProxyRequests off ProxyRequests off
ProxyPass / http://localhost:3000/
AllowEncodedSlashes NoDecode
ProxyPass / http://localhost:3000/ nocanon
ProxyPassReverse / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/
</VirtualHost> </VirtualHost>
``` ```
<Proxy *> <Proxy *>
Order allow,deny Order allow,deny
Allow from all Allow from all
AllowEncodedSlashes NoDecode
</Proxy> </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 ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port
</VirtualHost> </VirtualHost>
``` ```

+ 4
- 2
docs/content/doc/usage/reverse-proxies.zh-cn.md Parādīt failu

... ...
ProxyPreserveHost On ProxyPreserveHost On
ProxyRequests off ProxyRequests off
ProxyPass / http://localhost:3000/
AllowEncodedSlashes NoDecode
ProxyPass / http://localhost:3000/ nocanon
ProxyPassReverse / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/
</VirtualHost> </VirtualHost>
``` ```
<Proxy *> <Proxy *>
Order allow,deny Order allow,deny
Allow from all Allow from all
AllowEncodedSlashes NoDecode
</Proxy> </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 ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port
</VirtualHost> </VirtualHost>
``` ```

Notiek ielāde…
Atcelt
Saglabāt