It seems I have a conflict in my configuration on CentOS 7 server.
The issue appears between vhost configuration on apache 2.4 (httpd) with the basic authentication and fail2ban apache-auth banning feature.
I want two things :
1) An authentication for access to my each websites with basic authentication feature.
2) Ban IP with fail2ban from apache errorlog files.
My problem is :
If I have "Deny from all" in location tag inside of vhost configuration file so I have prompt for authentication but I have too lot of errors in apache errorlog file --> "AH01797: client denied by server configuration"
However, if I change "Deny from all" by "Require all granted", the issue dispears but the prompt authentication too obviously.
How can I have this two features together, without conflict?
I hope this is clear. Please ask for any additional information needed.