Applied patch from this gist https://gist.github.com/adamchal/6457039 to make this module work from Nginx 1.4.2