HostnameLookups Off did not effect for the logfiles
http://stackoverflow.com/quest…o-reduce-server-wait-time
what do you think ... can or should it removed or is this parameter %h needed in imscp or fail2ban etc?
HostnameLookups Off did not effect for the logfiles
http://stackoverflow.com/quest…o-reduce-server-wait-time
what do you think ... can or should it removed or is this parameter %h needed in imscp or fail2ban etc?
Hello ;
First of all, the logFormat directives that you mention don't match with those provided by i-MSCP which are:
/etc/apache2/sites-available/00_nameserver.conf:
As you can see there, only one logFormat directive is provided and is different than the one you posted ( which are de facto not compatible with i-MSCP ).
For your question
As far as I know, the answer from the link you mention is false. If you look at your access.log files, you will see that the first entry, which correspond to the %h format string, is always an IP address and not an hostname. So here, the HostnameLookups Off does its job as expected:
/etc/apache2/apache2.conf:
Of course, you could replace the %h format string by the %a format string but I doubt that will change anything. This should not pose any problem with fail2ban nor with AWStats.
thanks Nuxwin, the LogFormat above is copied from apache.conf
so now I guess it makes no sense to change anything