Fixed: FS#1388 - Namevirtualhost directive is missing after update. 2nd try ;)
| | |
| | | // copy('tpl/apache_ispconfig.conf.master',$vhost_conf_dir.'/ispconfig.conf'); |
| | | |
| | | $content = rf('tpl/apache_ispconfig.conf.master'); |
| | | $records = $this->db->queryAllRecords("SELECT * FROM server_ip WHERE server_id = ".$conf["server_id"]." AND virtualhost = 'y'"); |
| | | $records = $this->db->queryAllRecords('SELECT * FROM '.$conf['mysql']['master_database'].'.server_ip WHERE server_id = '.$conf['server_id']." AND virtualhost = 'y'"); |
| | | if(is_array($records) && count($records) > 0) { |
| | | foreach($records as $rec) { |
| | | $content .= 'NameVirtualHost '.$rec['ip_address'].":80\n"; |
| | |
| | | |
| | | Alias /awstats-icon "/usr/share/awstats/icon" |
| | | |
| | | <tmpl_loop name="ip_adresses"> |
| | | NameVirtualHost {tmpl_var name="ip_address"}:80 |
| | | NameVirtualHost {tmpl_var name="ip_address"}:443 |
| | | </tmpl_loop> |
| | | |
| | | |