Set "AllowEncodedSlashes on" in vhost templates

This is required to properly support handling requests for project by
name, where the name may contain encoded slashes. For example,

  GET /v1/projects/openstack-infra%2Fstoryboard

causes Apache to give a 404 error without this patch.

Change-Id: Ibe95dbfc28621574bac7e4af78fe1d913fa4e1b6
This commit is contained in:
Adam Coldrick 2018-08-01 23:19:36 +01:00
parent 241a60c5fa
commit c4c7e17f19
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,8 @@
<% end %>
ServerName <%= scope.lookupvar("storyboard::application::hostname") %>
AllowEncodedSlashes on
DocumentRoot <%= scope.lookupvar("storyboard::application::www_root") %>
WSGIDaemonProcess storyboard user=<%= scope.lookupvar("storyboard::params::user") %> group=<%= scope.lookupvar("storyboard::params::group") %> threads=5 python-path=/usr/local/lib/python2.7/dist-packages

View File

@ -48,6 +48,8 @@
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
AllowEncodedSlashes on
DocumentRoot <%= scope.lookupvar("storyboard::application::www_root") %>
WSGIDaemonProcess storyboard user=<%= scope.lookupvar("storyboard::params::user") %> group=<%= scope.lookupvar("storyboard::params::group") %> threads=5 python-path=/usr/local/lib/python2.7/dist-packages