removing the auto deny rule for now until I figure out the network problem, nginx receive a private ip instead of the public one
This commit is contained in:
@@ -47,12 +47,12 @@ server {
|
|||||||
<b style=\"color:red; font-size:18pt; border:2pt solid black; padding:5pt;\">
|
<b style=\"color:red; font-size:18pt; border:2pt solid black; padding:5pt;\">
|
||||||
You are banned!</b></center>";
|
You are banned!</b></center>";
|
||||||
}
|
}
|
||||||
location ^~ /wp-content {
|
#location ^~ /wp-content {
|
||||||
# Logs the IP in "deny IP;" format to your specific file
|
## Logs the IP in "deny IP;" format to your specific file
|
||||||
access_log /etc/nginx/blacklisted.d/blacklisted-sessions.conf deny_style;
|
# access_log /etc/nginx/blacklisted.d/blacklisted-sessions.conf deny_style;
|
||||||
access_log /etc/nginx/blacklisted.memory.d/blacklisted-sessions.conf deny_style;
|
# access_log /etc/nginx/blacklisted.memory.d/blacklisted-sessions.conf deny_style;
|
||||||
return 444;
|
# return 444;
|
||||||
}
|
#}
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log my_custom_format;
|
access_log /var/log/nginx/access.log my_custom_format;
|
||||||
access_log /var/log/nginx/ip_audit.log ip_audit;
|
access_log /var/log/nginx/ip_audit.log ip_audit;
|
||||||
|
|||||||
Reference in New Issue
Block a user