nginx: fix variable init, insert debug print