diff options
author | Steffen Gebert <steffen.gebert@typo3.org> | 2013-06-03 21:42:47 +0200 |
---|---|---|
committer | Steffen Gebert <steffen.gebert@typo3.org> | 2013-06-05 08:55:10 +0200 |
commit | 832014f7043837d09fd8e74c61cf3ff651e985b8 (patch) | |
tree | cb62ad31ca315530b4029893a4c396877dc3bc4a /gerrit-httpd | |
parent | fea56e31eee7429df278b94ea2b02b88a2e2f165 (diff) |
Documentation: Reverse Proxy Configuration
Update the Reverse Proxy documentation and the Release Notes to reflect
the possible changes required for reverse proxy setups (to prevent
slashes from being decoded).
This reverts the following two commits:
27a3917dcbf851b62433a0f2360f9ac64db7938d
768cff15b09b724cd930f904eaac867443fb966d
Change-Id: I57e93b724685ba94cb4d935fbe3d933fa12bad2d
Diffstat (limited to 'gerrit-httpd')
-rw-r--r-- | gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/ConfigurationError.html | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/ConfigurationError.html b/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/ConfigurationError.html index 0bc3369211..a05e1ea90e 100644 --- a/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/ConfigurationError.html +++ b/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/ConfigurationError.html @@ -49,6 +49,15 @@ <VirtualHost <span class='ServerName'>review.example.com</span><span class='ServerPort'>:80</span>> ServerName <span class='ServerName'>review.example.com</span> + ProxyRequests Off + ProxyVia Off + ProxyPreserveHost On + + <Proxy *> + Order deny,allow + Allow from all + </Proxy> + <div class='apache_auth'> <Location <span class='ContextPath'>/r</span>/login/> AuthType Basic AuthName "Gerrit Code Review" @@ -56,9 +65,8 @@ ... </Location></div> - AllowEncodedSlashes NoDecode - RewriteEngine On - RewriteRule ^<span class='ContextPath'>/r</span>/(.*) http://...<span class='ContextPath'>/r</span>/$1 [NE,P] + AllowEncodedSlashes On + ProxyPass <span class='ContextPath'>/r</span>/ http://...<span class='ContextPath'>/r</span>/ nodecode </VirtualHost> </pre> </body> |