Skip to content

Commit

Permalink
Merge pull request voxpupuli#12 from drdla/patch-2
Browse files Browse the repository at this point in the history
This is part of patch-1!
  • Loading branch information
jfryman committed Sep 17, 2012
2 parents 9eca656 + 383a767 commit 9cbe369
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/vhost/vhost_header.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
server {
listen <%= listen_ip %>;
listen <%= listen_ip %>;
<% # 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 %>;
access_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/<%= name %>.access.log;
<% if ipv6_enable == 'true' && (defined? ipaddress6) %>
listen [<%= ipv6_listen_ip %>]:<%= ipv6_listen_port %> default ipv6only=on;
<% end %>
server_name <%= rewrite_www_to_non_www ? name.gsub(/^www\./, '') : name %>;
access_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/<%= name %>.access.log;

0 comments on commit 9cbe369

Please sign in to comment.