Skip to content

Commit

Permalink
ScriptAlias needs to come before Alias.
Browse files Browse the repository at this point in the history
Otherwise you end up getting this error on startup:
The ScriptAlias directive in xxx at line xxx will probably never match because it overlaps an earlier Alias.
  • Loading branch information
Dave Seff authored and Dave Seff committed Oct 2, 2014
1 parent 88f1ef4 commit acee4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/vhost.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<% else -%>
DocumentRoot "<%= @docroot %>"
<% end -%>
<%= scope.function_template(['apache/vhost/_scriptalias.erb']) -%>
<%= scope.function_template(['apache/vhost/_aliases.erb']) -%>

<%= scope.function_template(['apache/vhost/_itk.erb']) -%>
Expand Down Expand Up @@ -54,7 +55,6 @@
<%= scope.function_template(['apache/vhost/_rack.erb']) -%>
<%= scope.function_template(['apache/vhost/_redirect.erb']) -%>
<%= scope.function_template(['apache/vhost/_rewrite.erb']) -%>
<%= scope.function_template(['apache/vhost/_scriptalias.erb']) -%>
<%= scope.function_template(['apache/vhost/_serveralias.erb']) -%>
<%= scope.function_template(['apache/vhost/_setenv.erb']) -%>
<%= scope.function_template(['apache/vhost/_ssl.erb']) -%>
Expand Down

0 comments on commit acee4c5

Please sign in to comment.