Fix for nginx 1.5.x