Skip to content

Commit 93d7269

Browse files
author
Till Brehm
committed
Merge branch '6570-apache2-NameVirtualHost' into 'develop'
apache2 adding commented NameVirtualHost lines makes no sense Closes #6570 See merge request ispconfig/ispconfig3!1800
2 parents 1781337 + 63a0b0f commit 93d7269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2396,8 +2396,8 @@ public function configure_apache() {
23962396
replaceLine('/etc/apache2/ports.conf', 'Listen 443', 'Listen 443', 1);
23972397

23982398
// Comment out the namevirtualhost lines, as they were added by ispconfig in ispconfig.conf file again
2399-
replaceLine('/etc/apache2/ports.conf', 'NameVirtualHost *:80', '# NameVirtualHost *:80', 1);
2400-
replaceLine('/etc/apache2/ports.conf', 'NameVirtualHost *:443', '# NameVirtualHost *:443', 1);
2399+
replaceLine('/etc/apache2/ports.conf', 'NameVirtualHost *:80', '# NameVirtualHost *:80', 1, 0);
2400+
replaceLine('/etc/apache2/ports.conf', 'NameVirtualHost *:443', '# NameVirtualHost *:443', 1, 0);
24012401
}
24022402

24032403
if(is_file('/etc/apache2/mods-available/fcgid.conf')) {

0 commit comments

Comments
 (0)