summaryrefslogtreecommitdiffstats
path: root/gerrit-httpd
diff options
context:
space:
mode:
authorSteffen Gebert <steffen.gebert@typo3.org>2013-06-03 21:42:47 +0200
committerSteffen Gebert <steffen.gebert@typo3.org>2013-06-05 08:55:10 +0200
commit832014f7043837d09fd8e74c61cf3ff651e985b8 (patch)
treecb62ad31ca315530b4029893a4c396877dc3bc4a /gerrit-httpd
parentfea56e31eee7429df278b94ea2b02b88a2e2f165 (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.html14
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 @@
&lt;VirtualHost <span class='ServerName'>review.example.com</span><span class='ServerPort'>:80</span>&gt;
ServerName <span class='ServerName'>review.example.com</span>
+ ProxyRequests Off
+ ProxyVia Off
+ ProxyPreserveHost On
+
+ &lt;Proxy *&gt;
+ Order deny,allow
+ Allow from all
+ &lt;/Proxy&gt;
+
<div class='apache_auth'> &lt;Location <span class='ContextPath'>/r</span>/login/&gt;
AuthType Basic
AuthName "Gerrit Code Review"
@@ -56,9 +65,8 @@
...
&lt;/Location&gt;</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
&lt;/VirtualHost&gt;
</pre>
</body>