my $url01 = admin.domain.tld; my $url02 = admin.domain2.tld; if($vhost == $url01){ { $default_page = default_page; } elsif($vhost == $url02) { $default_page = default_page2; } else { $default_page = default_page; }