restrict subdomain by constraint
Merge branch 'subdomain_constraint'