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