Skip to content

Instantly share code, notes, and snippets.

@abdallah
Last active December 24, 2015 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdallah/6808544 to your computer and use it in GitHub Desktop.
Save abdallah/6808544 to your computer and use it in GitHub Desktop.
[Definition]
failregex = <HOST>.*] "POST /wp-login.php
ignoreregex =
ErrorDocument 401 "Unauthorized Access"
ErrorDocument 403 "Forbidden"
<FilesMatch "wp-login.php">
AuthName "Authorized Only"
AuthType Basic
AuthUserFile /home/username/.wpadmin
require valid-user
</FilesMatch>
[apache-wp-login]
enabled = true
port = http,https
filter = apache-wp-login
logpath = /var/www/vhosts/*/statistics/logs/access_log
maxretry = 5
findtime = 120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment