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:
@@ -49,22 +49,16 @@
|
||||
<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"
|
||||
Require valid-user
|
||||
...
|
||||
</Location></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
|
||||
</VirtualHost>
|
||||
</pre>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user