fixed some deprecated variable access in nginx config