parent
b355e289fe
commit
ff3dce9dd7
7 changed files with 36 additions and 4 deletions
@ -0,0 +1,17 @@ |
||||
{ |
||||
|
||||
use esmith::HostsDB; |
||||
use esmith::DomainsDB; |
||||
my $hdb = esmith::HostsDB->open_ro(); |
||||
my %domains = map { $_->key => 1 } esmith::DomainsDB->open_ro->domains; |
||||
|
||||
$domain = $DOMAIN; |
||||
my @hosts = grep { |
||||
my $h = $_; |
||||
($h->prop('HostType') eq 'Self') && !$domains{$h->key} |
||||
} $hdb->get_hosts_by_domain($domain); |
||||
$alias = join " ", map { $_->key } @hosts; |
||||
|
||||
$OUT .= ''; |
||||
} |
||||
|
@ -0,0 +1,4 @@ |
||||
LogFile="/var/log/httpd/access_log" |
||||
LogType=W |
||||
LogFormat=1 |
||||
LogSeparator=" " |
@ -0,0 +1,2 @@ |
||||
SiteDomain="{$domain}" |
||||
HostAliases="{$alias}" |
@ -0,0 +1,3 @@ |
||||
DirData="/var/lib/awstats" |
||||
DirCgi="/awstats" |
||||
DirIcons="/awstatsicons" |
Loading…
Reference in new issue