Skip to content

Commit 80641b5

Browse files
committed
Add support for serveraliases in vhosts
These vhost shorthands don't currently support setting serveraliases, which the underlying nginx::vhost does. Allow use of serveraliases in vhost::* by adding a default parameter to each.
1 parent c5737d6 commit 80641b5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

manifests/vhost/homedir.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
$priority = '20',
1313
$template = 'nginx/vhost-homedir.conf.erb',
1414
$servername = '',
15+
$serveraliases = undef,
1516
$ssl = false,
1617
$ssl_port = '443',
1718
$ssl_path = $nginx::server::default_ssl_path,

manifests/vhost/proxy.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
$upstream_server = 'localhost',
3434
$upstream_port = '8080',
3535
$servername = '',
36+
$serveraliases = undef,
3637
$ssl = false,
3738
$ssl_port = '443',
3839
$ssl_path = $nginx::server::default_ssl_path,

manifests/vhost/redirect.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
$priority = '10',
1414
$template = 'nginx/vhost-redirect.conf.erb',
1515
$servername = '',
16+
$serveraliases = undef,
1617
$ssl = false,
1718
$ssl_port = '443',
1819
$ssl_path = $nginx::server::default_ssl_path,

0 commit comments

Comments
 (0)