Skip to content

xmlrpc = 403 #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lets-encrypt/activate-tls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ server {
log_not_found off;
access_log off;
}
location = /xmlrpc.php {
deny all;
access_log off;
log_not_found off;
}
location ~* \.php$ {
location ~ \wp-login.php$ {
allow $GATEWAY/24;
Expand Down
13 changes: 13 additions & 0 deletions wordpress_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,12 @@ server {
log_not_found off;
access_log off;
}

location = /xmlrpc.php {
deny all;
access_log off;
log_not_found off;
}

location ~* \.php$ {
location ~ \wp-login.php$ {
Expand All @@ -613,6 +619,7 @@ server {
fastcgi_intercept_errors on;
fastcgi_pass unix:$PHP_FPM_SOCK;
}

fastcgi_split_path_info ^(.+\.php)(/.+)$;
try_files \$uri =404;
fastcgi_index index.php;
Expand Down Expand Up @@ -681,6 +688,12 @@ server {
log_not_found off;
access_log off;
}

location = /xmlrpc.php {
deny all;
access_log off;
log_not_found off;
}

location ~* \.php$ {
location ~ \wp-login.php$ {
Expand Down