replace ngx_strcmp with ngx_strncmp to use ngx_str_t->len