2011-06-07 00:25:04 +02:00
|
|
|
server {
|
2012-09-01 17:51:30 +02:00
|
|
|
listen <%= listen_ip %>;
|
2011-06-07 00:25:04 +02:00
|
|
|
<% # check to see if ipv6 support exists in the kernel before applying %>
|
2012-09-01 17:51:30 +02:00
|
|
|
<% 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;
|