I have an nginx fix for a fun…

I have an nginx 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.org around line 60. I’m happy to commit this but I wanted review first.

#nginx