forked from voxpupuli/puppet-nginx
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request voxpupuli#12 from drdla/patch-2
This is part of patch-1!
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |