diff --git a/templates/vhost/_wsgi.erb b/templates/vhost/_wsgi.erb index 12c7826371..6632a9b8bd 100644 --- a/templates/vhost/_wsgi.erb +++ b/templates/vhost/_wsgi.erb @@ -13,14 +13,14 @@ WSGIProcessGroup <%= @wsgi_process_group %> <% end -%> <% if @wsgi_script_aliases_match and ! @wsgi_script_aliases_match.empty? -%> - <%- @wsgi_script_aliases_match.keys.sort.each do |key| -%> + <%- @wsgi_script_aliases_match.keys.sort.reverse.each do |key| -%> <%- if key != '' and @wsgi_script_aliases_match[key] != ''-%> WSGIScriptAliasMatch <%= key %> "<%= @wsgi_script_aliases_match[key] %>" <%- end -%> <%- end -%> <% end -%> <% if @wsgi_script_aliases and ! @wsgi_script_aliases.empty? -%> - <%- @wsgi_script_aliases.keys.sort.each do |key| -%> + <%- @wsgi_script_aliases.keys.sort.reverse.each do |key| -%> <%- if key != '' and @wsgi_script_aliases[key] != ''-%> <%- if @wsgi_script_aliases[key].is_a? Array -%> WSGIScriptAlias <%= key %> <%= @wsgi_script_aliases[key].join(' ') %>