File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ sub feature_warnings
155155sub feature_setup
156156{
157157my ($d ) = @_ ;
158+ return 1 if ($d -> {' alias' });
158159my $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
291292sub feature_modify
292293{
293294my ($d , $oldd ) = @_ ;
295+ return 1 if ($d -> {' alias' });
294296
295297&nginx::lock_all_config_files();
296298my $changed = 0;
@@ -440,6 +442,7 @@ sub feature_modify
440442sub feature_delete
441443{
442444my ($d ) = @_ ;
445+ return 1 if ($d -> {' alias' });
443446&$virtual_server::first_print ($text {' feat_delete' });
444447&nginx::lock_all_config_files();
445448my $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+ }
601607elsif ($d -> {' virtualmin-nginx' }) {
602608 if (!$oldd || !$oldd -> {' virtualmin-nginx' }) {
603609 # Turning on a website, so enable SSL as well
You can’t perform that action at this time.
0 commit comments