add nginx debug code