Skip to content

Commit

Permalink
Merge pull request #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 8562ff4 + cc4b961 commit 20fa345
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 20fa345

Please sign in to comment.