Update templates/vhost/vhost_footer.erb
This commit is contained in:
parent
375dd0fa49
commit
cc4b9615f7
1 changed files with 8 additions and 0 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue