Why NGINX returns 405 for a POST with a 504 GATEWAY TIMEOUT, and other Gotchas around its error page directive

NGINX' error_page directive keeps me busy, again. This week at engageSPARK we noticed a seemingly weird behavior by NGINX: On POST requests, NGINX would sometimes return a 405 METHOD NOT SUPPORTED response. This is weird, to say the least: Either your web application (the upstream server) supports POST or it …

Jump into Docker Container Shell

This line is a nuisance:

docker exec -ti containername bash

I'm running it for every of our dozen containers many times a day. I like that it TAB-completes the container name. Other than that it's a nuisance, for these reasons:

It's slow: The variable thing about it, the container name …

Uploading files with PhantomJS, GhostDriver and Python

For a while, our Selenium tests could not upload files to PhantomJS. That's a problem, if you want to test a platform for making phone calls easy — you do need to upload mp3 files. The tests would be stuck, or simply fail to upload the file without complaint. Now, after …