Commit db81c7c7 authored by tbrehm's avatar tbrehm
Browse files

Put vlogger log directives in separate apache config file so they are...

Put vlogger log directives in separate apache config file so they are available for the websites even if the controlpanel is not installed on the server.
parent 27037ac4
......@@ -699,6 +699,15 @@ class installer_base {
replaceLine('/etc/suphp/suphp.conf','docroot=','docroot=/var/clients',0);
}
//* Copy the ISPConfig configuration include
$vhost_conf_dir = $conf['apache']['vhost_conf_dir'];
$vhost_conf_enabled_dir = $conf['apache']['vhost_conf_enabled_dir'];
copy('tpl/apache_ispconfig.conf.master',$vhost_conf_dir.'/ispconfig.conf');
if(!@is_link($vhost_conf_enabled_dir."/000-ispconfig.conf")) {
exec("ln -s ".$vhost_conf_dir."/ispconfig.conf ".$vhost_conf_enabled_dir."/000-ispconfig.conf");
}
}
public function configure_firewall()
......
################################################
# ISPConfig Logfile configuration for vlogger
################################################
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "| /usr/sbin/vlogger -s access.log /var/log/ispconfig/httpd" combined_ispconfig
......@@ -40,11 +40,4 @@ NameVirtualHost *:{vhost_port}
</VirtualHost>
###########################################
# Logfile configuration for vlogger
###########################################
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "| /usr/sbin/vlogger -s access.log /var/log/ispconfig/httpd" combined_ispconfig
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment