Skip to content

Commit 794782c

Browse files
committed
Fix to skip Nginx SSL lifecycle for alias domains
1 parent 00a0079 commit 794782c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

virtual_feature.pl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ sub feature_warnings
155155
sub feature_setup
156156
{
157157
my ($d) = @_;
158+
return 1 if ($d->{'alias'});
158159
my $tmpl = &virtual_server::get_template($d->{'template'});
159160
$d->{'web_sslport'} = $d->{'web_sslport'} || $tmpl->{'web_sslport'} || 443;
160161
$d->{'web_ssl_samechain'} = 1;
@@ -291,6 +292,7 @@ sub feature_setup
291292
sub feature_modify
292293
{
293294
my ($d, $oldd) = @_;
295+
return 1 if ($d->{'alias'});
294296

295297
&nginx::lock_all_config_files();
296298
my $changed = 0;
@@ -440,6 +442,7 @@ sub feature_modify
440442
sub feature_delete
441443
{
442444
my ($d) = @_;
445+
return 1 if ($d->{'alias'});
443446
&$virtual_server::first_print($text{'feat_delete'});
444447
&nginx::lock_all_config_files();
445448
my $server = &virtualmin_nginx::find_domain_server($d);
@@ -598,6 +601,9 @@ sub feature_chained
598601
# Not in auto mode
599602
return undef;
600603
}
604+
elsif ($d->{'alias'}) {
605+
return 0;
606+
}
601607
elsif ($d->{'virtualmin-nginx'}) {
602608
if (!$oldd || !$oldd->{'virtualmin-nginx'}) {
603609
# Turning on a website, so enable SSL as well

0 commit comments

Comments
 (0)