updated nginx module to fix deprecation warnings