Gentoo (Apache) 000-ispconfig.conf ispconfig.conf overlap
on gentoo installation ispconfig creates the file:
/etc/apache2/vhosts.d/000-ispconfig.conf
its no symlink to ispconfig.conf like in other distros.
in this file
/usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php
we have a function
//* This function is called when a IP on the server is inserted, updated or deleted or when anon_ip setting is altered
function server_ip
which creates/edits the file
/etc/apache2/vhosts.d/ispconfig.conf
so on gentoo, we have duplicate files 000-ispconfig.conf and ispconfig.conf which leads to a warning:
The Alias directive in /etc/apache2/vhosts.d/ispconfig.conf at line 63 will probably never match because it overlaps an earlier Alias.
The Alias directive in /etc/apache2/vhosts.d/ispconfig.conf at line 65 will probably never match because it overlaps an earlier Alias.
i think we should create ispconfig.conf instead of 000-ispconfig.conf on installation/update and remove 000-ispconfig.conf
install/dist/lib/gentoo.lib.php
SEARCH
//* Copy the ISPConfig configuration include
ADD AFTER
$vhost_conf_dir = $conf['apache']['vhost_conf_dir'];
$vhost_conf_enabled_dir = $conf['apache']['vhost_conf_enabled_dir'];
SEARCH
wf($conf['apache']['vhost_conf_dir'].'/000-ispconfig.conf', $tpl->grab());
unset($tpl);
REPLACE
wf($vhost_conf_dir.'/ispconfig.conf', $tpl->grab());
unset($tpl);
// remove file on old installations
if(is_file($vhost_conf_dir.'/000-ispconfig.conf')) {
unlink($vhost_conf_dir.'/000-ispconfig.conf');
}