Skip to content

Instantly share code, notes, and snippets.

@nderjung
Created May 31, 2019 11:08
Show Gist options
  • Save nderjung/e0e7f2c5dfe283d6e5c2f1c14696c21c to your computer and use it in GitHub Desktop.
Save nderjung/e0e7f2c5dfe283d6e5c2f1c14696c21c to your computer and use it in GitHub Desktop.
[Definition]
failregex = no user/password was provided for basic authentication.*client: <HOST>
user .* was not found in.*client: <HOST>
user .* password mismatch.*client: <HOST>
ignoreregex = </host></host></host>
[nginx-auth]
enabled = true
filter = nginx-auth
action = iptables-multiport[name="nginxauth", port="http,https", protocol="tcp"]
logpath = /var/www/vhosts/system/*/logs/error_log
/var/log/httpd/*error_log
maxretry = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment