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.
| | |
| | | } |
| | | } |
| | | 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); |
| | |
| | | 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']; |