Update default
This commit is contained in:
+13
-5
@@ -4,10 +4,20 @@ server {
|
||||
index index.html;
|
||||
server_name localhost;
|
||||
|
||||
# ================================================
|
||||
# LIMIT CONNECTION FOR IP / IPs WILL BE AUTO BANNED IF YOU HAVE INSTALL IPTABLES/FAIL2BAN
|
||||
limit_conn max 800;
|
||||
limit_req zone=one burst=300 nodelay;
|
||||
# ================================================
|
||||
|
||||
# ================================================
|
||||
# 1. Don't put log files into location / {..} it will not work as you think. Use like this.
|
||||
# 2. If you change their name or location make sure you also change those https://github.com/theraw/The-World-Is-Yours/blob/master/iptables/jail.local#L105-L118
|
||||
access_log /hostdata/default/logs/access.log main;
|
||||
error_log /hostdata/default/logs/error.log main;
|
||||
# ================================================
|
||||
|
||||
# ================================================
|
||||
location / {
|
||||
SecRulesEnabled;
|
||||
LearningMode;
|
||||
@@ -20,16 +30,13 @@ server {
|
||||
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
access_log /hostdata/default/logs/access.log main;
|
||||
# ERROR.log path shouldn't be changed! or change this https://github.com/theraw/The-World-Is-Yours/blob/master/iptables/jail.local#L110
|
||||
error_log /nginx/logs/error.log;
|
||||
# ================================================
|
||||
|
||||
location /denied/ {
|
||||
return 444;
|
||||
}
|
||||
|
||||
|
||||
# ================================================
|
||||
location ~ \.php {
|
||||
try_files $uri /index.php =404;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
@@ -37,4 +44,5 @@ server {
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
# ================================================
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user