tbrehm
2009-01-20 b9dbe75a8d7d022f32ed35fde566c9399f8f1aa9
Fixed: When an SSL web site is created, configure Apache automatically to listen on port 443, if it is not already listening on that port.
2 files modified
8 ■■■■■ changed files
install/lib/install.lib.php 3 ●●●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php 5 ●●●●● patch | view | raw | blame | history
install/lib/install.lib.php
@@ -530,6 +530,9 @@
            }
        }
        if($found == 0) {
            //* add \n if the last line does not end with \n or \r
            if(substr($out,-1) != "\n" && substr($out,-1) != "\r") $out .= "\n";
            //* add the new line at the end of the file
            $out .= $new_line."\n";
        }
        file_put_contents($filename,$out);
install/lib/installer_base.lib.php
@@ -706,6 +706,11 @@
            replaceLine('/etc/apache2/sites-available/000-default','<VirtualHost *>','<VirtualHost *:80>',1);
        }
        
        if(is_file('/etc/apache2/ports.conf')) {
            // add a line "Listen 443" to ports conf if line does not exist
            replaceLine('/etc/apache2/ports.conf','Listen 443','Listen 443',1);
        }
        
        //* Copy the ISPConfig configuration include
        $vhost_conf_dir = $conf['apache']['vhost_conf_dir'];