From 25546d376e2c0b7fe34a5d364df64815c3a55292 Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Mon, 9 Dec 2013 19:59:45 +0100 Subject: [PATCH] Gerrit-2.8: Allow encoded path separators in URLs Partial-Bug: #1082781 Change-Id: Ib446a3332a3ff289cd9f6464009ce5f7416309eb --- modules/gerrit/templates/gerrit.vhost.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gerrit/templates/gerrit.vhost.erb b/modules/gerrit/templates/gerrit.vhost.erb index 6ebe3c17a8..9bca07cc37 100644 --- a/modules/gerrit/templates/gerrit.vhost.erb +++ b/modules/gerrit/templates/gerrit.vhost.erb @@ -15,6 +15,7 @@ :443> ServerName <%= scope.lookupvar("gerrit::vhost_name") %> ServerAdmin <%= scope.lookupvar("gerrit::serveradmin") %> + AllowEncodedSlashes NoDecode ErrorLog ${APACHE_LOG_DIR}/gerrit-ssl-error.log @@ -55,7 +56,7 @@ <% if scope.lookupvar("gerrit::robots_txt_source") != "" -%> RewriteCond %{REQUEST_URI} !^/robots.txt$ <% end -%> - RewriteRule ^/(.*)$ http://localhost:8081/$1 [P] + RewriteRule ^/(.*)$ http://localhost:8081/$1 [NE,P] ProxyPassReverse / http://localhost:8081/