add listen_port on rewrite_www_to_non_www
Adding the port in case it is not by default.
This commit is contained in:
parent
8997529a6c
commit
1f007e3587
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ include <%= file %>;
|
|||
}
|
||||
<% if @rewrite_www_to_non_www -%>
|
||||
server {
|
||||
listen <%= @listen_ip %>;
|
||||
listen <%= @listen_ip %>:<%= @listen_port %>;
|
||||
server_name www.<%= @name.gsub(/^www\./, '') %>;
|
||||
rewrite ^ http://<%= @name.gsub(/^www\./, '') %>$uri permanent;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue