Sha256: 691c6760da3646aa7932433bdcd2cef16324c045899b09daa99bd17885ebf813

Contents?: true

Size: 283 Bytes

Versions: 28

Compression:

Stored size: 283 Bytes

Contents

<% if fetch(:nginx_remove_www) %>
  if ($host ~* ^www\.(.*)) {
    set $host_without_www $1;
    <% if fetch(:nginx_use_ssl) %>
    rewrite ^(.*) https://$host_without_www$1 permanent;
    <% else %>
    rewrite ^(.*) http://$host_without_www$1 permanent;
    <% end %>
  }
<% end %>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
magic_recipes_two-0.0.74 lib/generators/capistrano/magic_recipes/templates/nginx/remove_www.erb
magic_recipes_two-0.0.73 lib/generators/capistrano/magic_recipes/templates/nginx/remove_www.erb
magic_recipes_two-0.0.72 lib/generators/capistrano/magic_recipes/templates/nginx/remove_www.erb
magic_recipes_two-0.0.71 lib/generators/capistrano/magic_recipes/templates/nginx/remove_www.erb
magic_recipes_two-0.0.70 lib/generators/capistrano/magic_recipes/templates/nginx/remove_www.erb
magic_recipes_two-0.0.69 lib/generators/capistrano/magic_recipes/templates/nginx/remove_www.erb
magic_recipes_two-0.0.68 lib/generators/capistrano/magic_recipes/templates/nginx/remove_www.erb
magic_recipes_two-0.0.67 lib/generators/capistrano/magic_recipes/templates/nginx/remove_www.erb