From d0325c88666352390548cc39a6d22f664d9917d7 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 19 Jan 2016 10:45:35 +0100 Subject: [PATCH] Don't hardcode apache ports --- root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/81SimpleVHosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/81SimpleVHosts b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/81SimpleVHosts index 922c66c..66504e1 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/81SimpleVHosts +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/81SimpleVHosts @@ -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,