Don't hardcode apache ports

This commit is contained in:
Daniel Berteaud 2016-01-19 10:45:35 +01:00
parent b32df6e81d
commit d0325c8866
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
my @vhosts = $db->get_all_by_prop('type' => 'vhost');
foreach my $vhost (@vhosts) {
my $templatePath = $vhost->prop('TemplatePath') || 'WebAppVirtualHost';
foreach my $port (qw(80 443)){
foreach my $port ((${'httpd-e-smith'}{'TCPPort'} || '80'), ($modSSL{'TCPPort'} || '443')){
my %virtualHost = (
ipAddress => '0.0.0.0',
port => $port,