12 lines
339 B
Text
12 lines
339 B
Text
<% if @include_files %><% @include_files.each do |file| -%>
|
|
include <%= file %>;
|
|
<% end -%><% end -%>
|
|
}
|
|
|
|
<% if rewrite_www_to_non_www %>
|
|
server {
|
|
listen <%= listen_ip %>;
|
|
server_name www.<%= name.gsub(/^www\./, '') %>;
|
|
rewrite ^ http://<%= name.gsub(/^www\./, '') %>$uri permanent;
|
|
}
|
|
<% end %>
|