Don't hardcode apache ports
This commit is contained in:
parent
b32df6e81d
commit
d0325c8866
|
@ -12,7 +12,7 @@
|
||||||
my @vhosts = $db->get_all_by_prop('type' => 'vhost');
|
my @vhosts = $db->get_all_by_prop('type' => 'vhost');
|
||||||
foreach my $vhost (@vhosts) {
|
foreach my $vhost (@vhosts) {
|
||||||
my $templatePath = $vhost->prop('TemplatePath') || 'WebAppVirtualHost';
|
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 = (
|
my %virtualHost = (
|
||||||
ipAddress => '0.0.0.0',
|
ipAddress => '0.0.0.0',
|
||||||
port => $port,
|
port => $port,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user