mirror of
https://github.com/cloudpanel-io/vhost-templates.git
synced 2026-05-18 08:23:31 +08:00
Revert "block Wordpress XML-RPC endpoint"
This commit is contained in:
@@ -31,10 +31,6 @@ server {
|
|||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /xmlrpc.php {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~/(wp-admin/|wp-login.php) {
|
location ~/(wp-admin/|wp-login.php) {
|
||||||
#auth_basic "Restricted Area";
|
#auth_basic "Restricted Area";
|
||||||
#auth_basic_user_file /home/site-user/.htpasswd;
|
#auth_basic_user_file /home/site-user/.htpasswd;
|
||||||
|
|||||||
@@ -27,10 +27,6 @@ server {
|
|||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /xmlrpc.php {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~/(wp-admin/|wp-login.php) {
|
location ~/(wp-admin/|wp-login.php) {
|
||||||
#auth_basic "Restricted Area";
|
#auth_basic "Restricted Area";
|
||||||
#auth_basic_user_file /home/site-user/.htpasswd;
|
#auth_basic_user_file /home/site-user/.htpasswd;
|
||||||
|
|||||||
@@ -21,10 +21,6 @@ server {
|
|||||||
allow all;
|
allow all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /xmlrpc.php {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
{{settings}}
|
{{settings}}
|
||||||
|
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
|||||||
Reference in New Issue
Block a user