improve configure for nginx