take over changes from debian nginx 1.6.2-4