Whenever a new user is created, a subdomain should be automatically created.
user1.abc.com
user2.abc.com
Is there a way to achieve this through code?
Update:
To create a subdomain I goto applicationhost.config
file and add:
<binding protocol="http" bindingInformation="*:1122:abc.localhost" />
I'm looking for a generic way to create sub-domain where I don't have to edit applicationhost.config manually.
Update 2:
How my question is different from this.
The step 4 of the answer accepted as right is relevant to my question and no explanation is provided for Subdomains on localhost IIS
.