Merge pull request #10 from grooverdan/ticket/11664-listen_port_fix

(#11664) Fix listen_port in template so it isn't ignored
This commit is contained in:
Nick Lewis 2012-10-18 18:52:54 -07:00
commit 20d3e2fc33

View file

@ -1,5 +1,5 @@
server {
listen <%= listen_ip %>;
listen <%= listen_ip %>:<%= listen_port %>;
<% # check to see if ipv6 support exists in the kernel before applying %>
<% if ipv6_enable == 'true' && (defined? ipaddress6) %>listen [<%= ipv6_listen_ip %>]:<%= ipv6_listen_port %> default ipv6only=on;<% end %>
server_name <%= name %>;