is it possible to display the Nginx Error page (or Direct Nignx Error Code) once the fail2ban ban the IP address after login max attempts in Nginx Basic Auth?
the following is the current config of jail.local
[nginx-http-auth]
enabled = true
port = http,https
filter = nginx-http-auth
action = iptables-multiport[name=nginx-http-auth,port="80,443"]
logpath = /var/log/nginx/error.log
bantime = 3600
maxretry = 3
or is it possible to display an error page only after max login attempts using the Nginx configuration?
Any guidance will be helpful. Thank you.