diff options
author | Gary Kim <gary@garykim.dev> | 2019-07-20 18:44:53 +0000 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-07-20 21:44:53 +0300 |
commit | cc384d767e40caa84c58b259853d9cbaaaab33fe (patch) | |
tree | 49439bae2096462c32cdfc7646a680cd68f1bc66 /docs/content/doc/usage/reverse-proxies.en-us.md | |
parent | 61ad048041a2952f7f809d4f9806ba63e4a1fc1d (diff) | |
download | gitea-cc384d767e40caa84c58b259853d9cbaaaab33fe.tar.gz gitea-cc384d767e40caa84c58b259853d9cbaaaab33fe.zip |
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>
Diffstat (limited to 'docs/content/doc/usage/reverse-proxies.en-us.md')
-rw-r--r-- | docs/content/doc/usage/reverse-proxies.en-us.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/content/doc/usage/reverse-proxies.en-us.md b/docs/content/doc/usage/reverse-proxies.en-us.md index d828d5b226..24fb16e364 100644 --- a/docs/content/doc/usage/reverse-proxies.en-us.md +++ b/docs/content/doc/usage/reverse-proxies.en-us.md @@ -53,7 +53,8 @@ If you want Apache HTTPD to serve your Gitea instance, you can add the following ... ProxyPreserveHost On ProxyRequests off - ProxyPass / http://localhost:3000/ + AllowEncodedSlashes NoDecode + ProxyPass / http://localhost:3000/ nocanon ProxyPassReverse / http://localhost:3000/ </VirtualHost> ``` @@ -70,9 +71,10 @@ 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 # 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> ``` |