Sha256: 098ffbcd1b0027b326e457789de395d67cd67394326f25a2cce1c8d8ffeb44e2

Contents?: true

Size: 739 Bytes

Versions: 20

Compression:

Stored size: 739 Bytes

Contents

<% if @include_files %><% @include_files.each do |file| -%>
include <%= file %>;
<% end -%><% end -%>
<%# make sure that allow comes before deny by forcing the allow key (if it -%>
<%# exists) to be first in the output order.  The hash keys also need to be -%>
<%# sorted so that the ordering is stable. -%>
<% if @vhost_cfg_append -%><% vhost_cfg_append.sort_by{ |k, v| k.to_s == 'allow' ? '' : k.to_s }.each do |key,value| -%>
  <%= key %> <%= value %>;
<% end -%>
<% end -%>
}
<% if @rewrite_www_to_non_www -%>
server {
  listen                <%= @listen_ip %>:<%= @listen_port %>;
  server_name           www.<%= @name.gsub(/^www\./, '') %>;
  rewrite               ^ http://<%= @name.gsub(/^www\./, '') %>$uri permanent;
}
<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.6.0 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.5.2 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.5.1 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.5.0 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.4.1 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.4.0 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.3.3 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.3.2 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.3.1 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.3.0 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.2.1 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.2.0 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.1.0 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.0.6 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.0.5 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.0.4 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.0.3 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.0.2 modules/nginx/templates/vhost/vhost_footer.erb
freighthop-0.0.1 modules/nginx/templates/vhost/vhost_footer.erb