My website will look something like online store, where every user has his online store as subdomain eg user1.myprojectdomain.com
we need help that how can Manage sub domains. Do we create a Virtual Directory/application for every user in the IIS on runtime or we can do some thing else
I have created a website xyz.com
in my iis and created an entry in windows etc/localhost
as follows
xyz.com 127.0.0.1
and it is working fine. and then I did added another entry to route all sub domains as follows
*.xyz.com 127.0.0.1
Now I am trying to use abc.xyz.com or any other but it is not working
1) Make sure your DNS is setup to point to your subdomain. This means to make sure you have an A Record in the DNS for your subdomain and point to the same IP.
2) You must add an additional website in IIS 7 named subdomain.site.com
Sites > Add Website Site Name: subdomain.site.com Physical Path: select the subdomain directory Binding: same ip as site.com Host name: subdomain.site.com
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.