Update proxy example shown on container configuration error page

Apache needs to use mod_rewrite to handle Gerrit's URL encoded
REST API URLs.

Change-Id: I02bfa48a0294072b83be950c0c2efbe0e0c8905c
This commit is contained in:
Shawn Pearce
2013-04-17 07:18:09 -07:00
parent 27a3917dcb
commit 768cff15b0

View File

@@ -49,22 +49,16 @@
&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"
Require valid-user
...
&lt;/Location&gt;</div>
ProxyPass <span class='ContextPath'>/r</span>/ http://...<span class='ContextPath'>/r</span>/
AllowEncodedSlashes NoDecode
RewriteEngine On
RewriteRule ^<span class='ContextPath'>/r</span>/(.*) http://...<span class='ContextPath'>/r</span>/$1
&lt;/VirtualHost&gt;
</pre>
</body>