use ngx_strncmp instead of ngx_strcmp to ensure to compare only the
valid part of the realm