diff --git a/modules/gerrit/templates/gerrit.vhost.erb b/modules/gerrit/templates/gerrit.vhost.erb index 459478b257..b26ef57aee 100644 --- a/modules/gerrit/templates/gerrit.vhost.erb +++ b/modules/gerrit/templates/gerrit.vhost.erb @@ -48,6 +48,9 @@ RewriteRule ^.*$ <%= scope.lookupvar("gerrit::canonicalweburl") %> <% if scope.lookupvar("gerrit::replicate_local") -%> RewriteCond %{REQUEST_URI} !^/p/ +<% end -%> +<% if scope.lookupvar("gerrit::contactstore") == true -%> + RewriteCond %{REQUEST_URI} !^/fakestore$ <% end -%> RewriteRule ^/(.*)$ http://localhost:8081/$1 [P]