Skip to content

Commit 14001d2

Browse files
author
Till Brehm
committed
FS#3370 - Duplicate directive NameVirtualHost in ispconfig.conf and ports.conf?
1 parent 793c77a commit 14001d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,10 @@ public function configure_apache() {
12351235
if(is_file('/etc/apache2/ports.conf')) {
12361236
// add a line "Listen 443" to ports conf if line does not exist
12371237
replaceLine('/etc/apache2/ports.conf', 'Listen 443', 'Listen 443', 1);
1238+
1239+
// Comment out the namevirtualhost lines, as they were added by ispconfig in ispconfig.conf file again
1240+
replaceLine('/etc/apache2/ports.conf', 'NameVirtualHost *:80', '# NameVirtualHost *:80', 1);
1241+
replaceLine('/etc/apache2/ports.conf', 'NameVirtualHost *:443', '# NameVirtualHost *:443', 1);
12381242
}
12391243

12401244
if(is_file('/etc/apache2/apache.conf')) {

0 commit comments

Comments
 (0)