Skip to content

Commit 94dfdc1

Browse files
authored
Merge pull request voxpupuli#736 from jkroepke/patch-2
Move try_files
2 parents a6f00f6 + cf76dda commit 94dfdc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/vhost/locations/fastcgi.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
root <%= @www_root %>;
33
<% end -%>
44
include <%= @fastcgi_params %>;
5-
<% if @try_files -%>
6-
try_files <% @try_files.each do |try| -%> <%= try %><% end -%>;
7-
<% end -%>
85

96
fastcgi_pass <%= @fastcgi %>;
107
<% if @fastcgi_split_path -%>
118
fastcgi_split_path_info <%= @fastcgi_split_path %>;
129
<% end -%>
10+
<% if @try_files -%>
11+
try_files <% @try_files.each do |try| -%> <%= try %><% end -%>;
12+
<% end -%>
1313
<% if defined? @fastcgi_script -%>
1414
<%-# this setting can be overridden by setting it in the fastcgi_param hash too %>
1515
<%- @fastcgi_param = { 'SCRIPT_FILENAME' => @fastcgi_script }.merge(@fastcgi_param || {}) -%>

0 commit comments

Comments
 (0)