Update templates/vhost/vhost_footer.erb

This commit is contained in:
drdla 2012-09-01 18:52:55 +03:00
parent 375dd0fa49
commit cc4b9615f7

View file

@ -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 %>