applied fix for bad gateway error caused by fast-cgi