fix bugs. and support wildcard domain

support wildcard server_name