Browse Source

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
master
Adam Coldrick 9 months ago
parent
commit
c4c7e17f19
2 changed files with 4 additions and 0 deletions
  1. 2
    0
      templates/storyboard_http.vhost.erb
  2. 2
    0
      templates/storyboard_https.vhost.erb

+ 2
- 0
templates/storyboard_http.vhost.erb View File

@@ -4,6 +4,8 @@
4 4
 <% end %>
5 5
   ServerName <%= scope.lookupvar("storyboard::application::hostname") %>
6 6
 
7
+  AllowEncodedSlashes on
8
+
7 9
   DocumentRoot <%= scope.lookupvar("storyboard::application::www_root") %>
8 10
 
9 11
   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

+ 2
- 0
templates/storyboard_https.vhost.erb View File

@@ -48,6 +48,8 @@
48 48
     # MSIE 7 and newer should be able to use keepalive
49 49
     BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
50 50
 
51
+    AllowEncodedSlashes on
52
+
51 53
     DocumentRoot <%= scope.lookupvar("storyboard::application::www_root") %>
52 54
 
53 55
     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

Loading…
Cancel
Save