Hi there
I would like to change the value: SkipHosts in: /etc/awstats/awstats.*.conf
I looked up in named (10_named_global_ns.pl), how it is built there and found:
https://github.com/i-MSCP/imsc…rvers/named/bind.pm#L1010
And something similar is missing here:
https://github.com/i-MSCP/imsc…s/Awstats/Awstats.pm#L364
I assume that at the moment there's no way to change awstats settings, right?
Cheers,
Fluser
To complete my request: I think that the listener would be looking something like that. I's not a working version, only as example!
Code: 10_awstats_skiphosts.pl
- package Listener::Awstats::SkipHosts;
- use strict;
- use warnings;
- use iMSCP::EventManager;
- #
- ## Please, don't edit anything below this line unless you known what you're doing
- #
- iMSCP::EventManager->getInstance()->register(
- 'beforeAddAwstatsConfig',
- sub {
- my ($tplContent, $tplName) = @_;
- ${$tplContent} =~ s/^(SkipHosts\s+=\s+).*/${1}"REGEX[^192\.168\.]"/im;
- }
- );
- 1;
- __END__