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