Update handler of nginx rules;