Nginx – Disable xmlrpc.php
5 March, 2021 by
Nginx – Disable xmlrpc.php
Administrator
| No comments yet


Nginx – Disable xmlrpc.php

server {
    # stuff
    location = /xmlrpc.php {
        deny all;
    }
}
the above lines in vhost files per domain
server {
listen x.y.z;
servername xyz.com;

location = /xmlrpc.php {
deny all;
access_log off; #to prevent from filling up the access log file
error_log off; #to prevent from filling up the error log file
}
}

Sign in to leave a comment