module-nginx/templates/vhost/vhost_header.erb

7 lines
370 B
Text
Raw Normal View History

2011-06-07 00:25:04 +02:00
server {
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;