How to set up subdomains on IIS 7

后端 未结 4 2007
遇见更好的自我
遇见更好的自我 2020-11-28 21:05

I have a website sitting on an IIS 7 server: WWW.example.COM

I would like to create several sub domains that looks like SUBDOMAIN1.example.C

4条回答
  •  余生分开走
    2020-11-28 21:23

    This one drove me crazy... basically you need two things:

    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.example.com

    • Sites > Add Website
    • Site Name: subdomain.example.com
    • Physical Path: select the subdomain directory
    • Binding: same ip as example.com
    • Host name: subdomain.example.com

提交回复
热议问题