0 votes
35 views
by Rookie

Hi, 

I went through another post, where you suggested removing the limit req section. I did then restarted Nginx too, still, I can't access the wp-admin part. Here is my wpcommon.conf

# WordPress COMMON SETTINGS

# DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE Webinoly


# 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 {

 location ~ /wp-admin/admin-ajax.php$ {

 #limit_req zone=wp burst=8 nodelay;

 include fastcgi_params;

 fastcgi_pass php;

 }

 location ~* /wp-admin/.*\.php$ {

 #limit_req zone=wp burst=15 nodelay;

 include common/acl.conf;

 include fastcgi_params;

 fastcgi_pass php;

 }

}

location = /xmlrpc.php {

 #limit_req zone=wp burst=8 nodelay;

 include fastcgi_params;

 fastcgi_pass php;

}

location = /wp-login.php {

 #limit_req zone=one burst=2 nodelay;

 include common/acl.conf;

 include fastcgi_params;

 fastcgi_pass php;

}


# Disable wp-config.txt

location = /wp-config.txt {

 deny all;

 access_log off;

 log_not_found off;

}


# Disallow php in upload folder

location /wp-content/uploads/ {

 location ~ \.php$ {

 #Prevent Direct Access Of PHP Files From Web Browsers

 deny all;

 }

}

Please log in or register to answer this question.

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...