I have an nginx fix for a fun…

I have an nginxNGINX NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. It started out as a web server designed for maximum performance and stability. In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers. https://www.nginx.com/. fix for a fun issue that’s breaking Jetpack integration.

https://make.wordpress.org/support/xmlrpc.php isn’t being rewritten to /xmlrpc.php because /support/xmlrpc.php exists (it’s a bbPress file). /support/ is a physical directory that is bypassed for all subdomains, which means we end up rewriting it to index.php and thus a 404 results.

The simple fix appears to be this:


    # make.wordpress.org/support/xmlrpc.php needs to hit /xmlrpc.php.
    # Without this, it targets /support/xmlrpc.php (a bbPress file)
    # which is then denied and we end up with a 404.
    location ~ /xmlrpc.php(?:/|$) {
        include conf.d/php-config;
        rewrite ^ /xmlrpc.php break;
    }

This should go into conf.d/wporg-make.wordpress.orgWordPress.org The community site where WordPress code is created and shared by the users. This is where you can download the source code for WordPress core, plugins and themes as well as the central location for community conversations and organization. https://wordpress.org/ around line 60. I’m happy to commit this but I wanted review first.

#nginx