mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 05:14:10 -07:00
Blocking xmlrpc.php and wp-config.php in nginx-rate-limit templatre for WP
This commit is contained in:
parent
fa165a0020
commit
dd18d6dd6d
3 changed files with 6 additions and 0 deletions
|
@ -79,6 +79,8 @@ server {
|
|||
proxy_pass https://%ip%:%web_ssl_port%;
|
||||
}
|
||||
|
||||
location ~ /wp-config.php {return 404;}
|
||||
location ~ /xmlrpc.php {return 404;}
|
||||
location ~ /\.ht {return 404;}
|
||||
location ~ /\.env {return 404;}
|
||||
location ~ /\.svn/ {return 404;}
|
||||
|
|
|
@ -79,6 +79,8 @@ server {
|
|||
proxy_pass https://%ip%:%web_ssl_port%;
|
||||
}
|
||||
|
||||
location ~ /wp-config.php {return 404;}
|
||||
location ~ /xmlrpc.php {return 404;}
|
||||
location ~ /\.ht {return 404;}
|
||||
location ~ /\.env {return 404;}
|
||||
location ~ /\.svn/ {return 404;}
|
||||
|
|
|
@ -76,6 +76,8 @@ server {
|
|||
proxy_pass http://%ip%:%web_port%;
|
||||
}
|
||||
|
||||
location ~ /wp-config.php {return 404;}
|
||||
location ~ /xmlrpc.php {return 404;}
|
||||
location ~ /\.ht {return 404;}
|
||||
location ~ /\.env {return 404;}
|
||||
location ~ /\.svn/ {return 404;}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue