improve nginx rule mangement