From cb67663b16a8df46a5be5d34ab90227f0024178e Mon Sep 17 00:00:00 2001 From: cloudpanel-io <53903112+cloudpanel-io@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:49:00 +0100 Subject: [PATCH] Revert "block Wordpress XML-RPC endpoint" --- v2-http3/WordPress/WordPress | 6 +----- v2-varnish/WordPress/WordPress | 6 +----- v2/WordPress/WordPress | 6 +----- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/v2-http3/WordPress/WordPress b/v2-http3/WordPress/WordPress index 52d9ecf..39f4828 100644 --- a/v2-http3/WordPress/WordPress +++ b/v2-http3/WordPress/WordPress @@ -31,10 +31,6 @@ server { deny all; } - location = /xmlrpc.php { - deny all; - } - location ~/(wp-admin/|wp-login.php) { #auth_basic "Restricted Area"; #auth_basic_user_file /home/site-user/.htpasswd; @@ -121,4 +117,4 @@ server { if (-f $request_filename) { break; } -} +} \ No newline at end of file diff --git a/v2-varnish/WordPress/WordPress b/v2-varnish/WordPress/WordPress index a929c33..ac50838 100644 --- a/v2-varnish/WordPress/WordPress +++ b/v2-varnish/WordPress/WordPress @@ -27,10 +27,6 @@ server { deny all; } - location = /xmlrpc.php { - deny all; - } - location ~/(wp-admin/|wp-login.php) { #auth_basic "Restricted Area"; #auth_basic_user_file /home/site-user/.htpasswd; @@ -114,4 +110,4 @@ server { if (-f $request_filename) { break; } -} +} \ No newline at end of file diff --git a/v2/WordPress/WordPress b/v2/WordPress/WordPress index 0b548fc..2dd7be5 100644 --- a/v2/WordPress/WordPress +++ b/v2/WordPress/WordPress @@ -21,10 +21,6 @@ server { allow all; } - location = /xmlrpc.php { - deny all; - } - {{settings}} try_files $uri $uri/ /index.php?$args; @@ -62,4 +58,4 @@ server { if (-f $request_filename) { break; } -} +} \ No newline at end of file