It looks like WordPress org doesn’t use ALPN…

It looks like WordPress.org doesn’t use ALPN for negotiating the connection encryption. Chrome is dropping support for NPN next month, so it’d be nice if we could upgrade before then.

#nginx

502 Bad Gateway on WordCamp.org Requests

I’m seeing 502 Bad Gateway errors on certain WordCamp.org requests. For example, requesting 30 posts from the JSON API works fine, but requesting 40 doesn’t.

I’ve also seen it happen when connecting Jetpack to WPCOM, but that’s intermittent and I haven’t noticed a pattern yet.

We have use cases where API clients will need 75-100 posts. They could make multiple requests, but that would add additional overhead and slow things down on their end.

The nginx logs say, upstream sent too big header while reading response header from upstream, and it sounds increasing the buffer sizes may be all that’s needed to fix it.

#nginx, #wordcamp-org

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

Please deploy and reload nginx for wporg web…

Please deploy and reload nginx for wporg-web. Don’t forget linkprop, as a new file was added. Relevant commits are 5640 and 5642.

#nginx, #request

Can I have an nginx reload on the…

Can I have an nginx reload on the web nodes after r5574-deploy?

For ease of review:

— wporg-downloads.wordpress.org (revision 5567)
+++ wporg-downloads.wordpress.org (working copy)
@@ -56,6 +56,7 @@
        try_files $uri =404;
        rewrite ^/plugin(.*) /plugin.php last;
        rewrite ^/translation(.*) /translation.php last;
+      rewrite ^/theme(.*) /theme.php last;
    }

Tested and works as expected.

#nginx

I’m getting errors trying to upload 15MB+ files…

I’m getting errors trying to upload 15MB+ files to wordcamp.org, and it sounds like it might be an Nginx config issue. Could someone please take a look and increase it to ~50MB?

POST http://2014.seattle.wordcamp.org/wp-admin/async-upload.php 413 (Request Entity Too Large) 

#configuration, #nginx, #wordcamp-org

Can the CNAME entries please be removed for…

Can the CNAME entries please be removed for android.wordpress.org, ios.wordpress.org, and iphone.wordpress.org? The latest nginx rules also need to be deployed, which will then handle these domains (redirecting them).

#dns, #nginx

We’re getting a 504 on WordCamp org during…

We’re getting a 504 on WordCamp.org during a tickets data export to MailChimp. The error occurs after 60 seconds while the PHP script keeps running until it’s done (a timeout of 600 is set). Can somebody please look into it? Thanks!

#nginx, #wordcamp-org

The $host = make wordpress org conditional also…

The $host = make.wordpress.org conditional also needs some lines from the location / block, prior to the rewrite for index.php pulled from @404-extend in https://make.wordpress.org/systems/2012/07/17/problem-with-nginx-rewrites-i-think-conflict-between/#comment-247.

Specifically:

        # uploaded files
        rewrite ^/([_0-9a-zA-Z-]+/)?files/(.+) /wp-includes/ms-files.php?file=$2 last;
        rewrite ^/core/handbook/files/(.+) /wp-includes/ms-files.php?file=$1 last;
        # add a trailing slash to /wp-admin
        rewrite ^/([_0-9a-zA-Z-]+/)?wp-admin$ /$1wp-admin/ permanent;
        rewrite ^/core/handbook/wp-admin$ /core/handbook/wp-admin/ permanent;

I suggest the various /core/handbook/ rules be pulled out into their own location block once make.wordpress.org moves to its own server block.

#nginx, #request

Can I have the following nginx rewrites set…

Can I have the following nginx rewrites set up in the wporg-wordpress.org nginx conf file, inside the make.wordpress.org host check around line 19?

        rewrite ^/core/[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) /$1 break;
        rewrite ^/core/[_0-9a-zA-Z-]+/(.*\.php)$ /$1 break;

#nginx, #request