fix nginx/FastCGI issue, and request time logging