File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 17
17
# [*ssl*] - Indicates whether to setup SSL bindings for this vhost.
18
18
# [*ssl_cert*] - Pre-generated SSL Certificate file to reference for SSL Support. This is not generated by this module.
19
19
# [*ssl_key*] - Pre-generated SSL Key file to reference for SSL Support. This is not generated by this module.
20
+ # [*server_name*] - List of vhostnames for which this vhost will respond. Default [$name].
20
21
# [*www_root*] - Specifies the location on disk for files to be read from. Cannot be set in conjunction with $proxy
21
22
#
22
23
# Actions:
44
45
$proxy = undef ,
45
46
$proxy_read_timeout = $nginx::params::nx_proxy_read_timeout,
46
47
$index_files = [' index.html' , ' index.htm' , ' index.php' ],
48
+ $server_name = [$name],
47
49
$www_root = undef
48
50
) {
49
51
Original file line number Diff line number Diff line change 2
2
listen <%= listen_ip %> ;
3
3
<% # check to see if ipv6 support exists in the kernel before applying %>
4
4
<% if ipv6_enable == 'true' && (defined? ipaddress6) %> listen [<%= ipv6_listen_ip %> ]:<%= ipv6_listen_port %> default ipv6only=on;<% end %>
5
- server_name <%= name %> ;
5
+ server_name <%= server_name.join(" ") %> ;
6
6
access_log <%= scope.lookupvar('nginx::params::nx_logdir')%> /<%= name %> .access.log;
You can’t perform that action at this time.
0 commit comments