diff --git a/modules/openstack_project/templates/mirror.vhost.erb b/modules/openstack_project/templates/mirror.vhost.erb index 1e6c384283..2a9cd10d01 100644 --- a/modules/openstack_project/templates/mirror.vhost.erb +++ b/modules/openstack_project/templates/mirror.vhost.erb @@ -143,6 +143,11 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a CustomLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_8080_access.log combined-cache ServerSignature Off + # Let upstreams decide on encoded slash handling. + # The default is 'Off' which returns 404 for URLs with encoded slashes, + # i.e. '%2f' instead of '/'. + AllowEncodedSlashes NoDecode + # Caching reverse proxy for things that don't make sense in AFS # # General cache rules diff --git a/playbooks/roles/mirror/templates/mirror.vhost.j2 b/playbooks/roles/mirror/templates/mirror.vhost.j2 index 5fdcaf1fac..8ed3771f86 100644 --- a/playbooks/roles/mirror/templates/mirror.vhost.j2 +++ b/playbooks/roles/mirror/templates/mirror.vhost.j2 @@ -155,6 +155,11 @@ ErrorLogFormat "[%{cu}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% , \ CustomLog /var/log/apache2/proxy_8080_access.log combined-cache ServerSignature Off + # Let upstreams decide on encoded slash handling. + # The default is 'Off' which returns 404 for URLs with encoded slashes, + # i.e. '%2f' instead of '/'. + AllowEncodedSlashes NoDecode + # Caching reverse proxy for things that don't make sense in AFS # # General cache rules