Skip to content

Commit

Permalink
Merge pull request voxpupuli#13 from drdla/patch-3
Browse files Browse the repository at this point in the history
This is part of patch-1!
  • Loading branch information
jfryman committed Sep 17, 2012
2 parents 9cbe369 + c13cb5d commit de8ede4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/vhost/vhost_footer.erb
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
}

<% if rewrite_www_to_non_www %>
server {
listen <%= listen_ip %>;
server_name www.<%= name.gsub(/^www\./, '') %>;
rewrite ^ http://<%= name.gsub(/^www\./, '') %>$uri permanent;
}
<% end %>

0 comments on commit de8ede4

Please sign in to comment.