Skip to content

Commit 98cfe5d

Browse files
committed
Fixed bug #459: [Tue Jan 20 00:04:54 2009] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
1 parent 7b26e85 commit 98cfe5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,12 @@ public function configure_apache()
701701
replaceLine('/etc/suphp/suphp.conf','docroot=','docroot=/var/clients',0);
702702
}
703703

704+
if(is_file('/etc/apache2/sites-enabled/000-default')) {
705+
replaceLine('/etc/apache2/sites-available/000-default','NameVirtualHost *','NameVirtualHost *:80',1);
706+
replaceLine('/etc/apache2/sites-available/000-default','<VirtualHost *>','<VirtualHost *:80>',1);
707+
}
708+
709+
704710
//* Copy the ISPConfig configuration include
705711
$vhost_conf_dir = $conf['apache']['vhost_conf_dir'];
706712
$vhost_conf_enabled_dir = $conf['apache']['vhost_conf_enabled_dir'];

0 commit comments

Comments
 (0)