Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
- fail last commit.
  • Loading branch information
QROkes committed Jun 28, 2018
1 parent 946da71 commit b3f334f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions templates/nginx/common/wpcommon.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@

# Limit access to avoid brute force attack
# https://baraktawily.blogspot.com/2018/02/how-to-dos-29-of-world-wide-websites.html
location = /wp-admin/load-styles.php {
limit_req zone=one burst=1 nodelay;
include common/acl.conf;
include fastcgi_params;
fastcgi_pass php;
}
location = /wp-admin/load-scripts.php {
limit_req zone=one burst=1 nodelay;
include common/acl.conf;
include fastcgi_params;
fastcgi_pass php;
location /wp-admin {
location ~ /wp-admin/admin-ajax.php$ {
include fastcgi_params;
fastcgi_pass php;
}
location ~* /wp-admin/.*\.php$ {
limit_req zone=one burst=5 nodelay;
include common/acl.conf;
include fastcgi_params;
fastcgi_pass php;
}
}
location = /wp-login.php {
limit_req zone=one burst=1 nodelay;
Expand Down

0 comments on commit b3f334f

Please sign in to comment.