| | |
| | | } |
| | | |
| | | if(!is_file($awstats_website_conf_file)) { |
| | | $awstats_conf_file_content = 'Include "'.$awstats_conf_dir.'/awstats.conf" |
| | | if (is_file($awstats_conf_dir."/awstats.conf")) { |
| | | $include_file = $awstats_conf_dir."/awstats.conf"; |
| | | } elseif (is_file($awstats_conf_dir."/awstats.model.conf")) { |
| | | $include_file = $awstats_conf_dir."/awstats.model.conf"; |
| | | } |
| | | $awstats_conf_file_content = 'Include "'.$include_file.'" |
| | | LogFile="/var/log/ispconfig/httpd/'.$domain.'/yesterday-access.log" |
| | | SiteDomain="'.$domain.'" |
| | | HostAliases="www.'.$domain.' localhost 127.0.0.1'.$aliasdomain.'"'; |