Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>Does IIS support wildcard host header? Can I capture and redirect *.mydomain.com to one web site?</p> </blockquote> <p>The answer is Yes/No. Yes, because you are able to redirect *.mydomain.com to one web site. No, because the magic is in DNS and not IIS.</p> <p>Here's how you do it:<br> At IIS MMC, configure a web site with NO host header, then assign an IP address to the site. (if you have one IP address in the box, then you can skip this). With this, the web site will bound to the specific IP and will listen to all HTTP requests send to the IP, and you are done :) </p> <p>Next step is to make sure your name resolution works for the wildcard query and reply with the correct IP address. If you using Microsoft DNS service, it won't allow you to create a '*' A record (assuming you already created the domain zone in DNS MMC), you need to do the following:</p> <ol> <li>Navigate to <code>%windir%\system32\dns\</code></li> <li>Find the zone file. E.g.<br> mydomain.com.dns, open it with Notepad</li> <li>Add an entry. E.g.<br> <code>* A IP.IP.IP.IP</code></li> <li>Save the zone data file</li> <li>Reload the zone data in DNS MMC. </li> </ol> <p>Take note that by doing this, all * will response to the IP that you configured earlier. E.g. abc.mydomain.com, www.mydomain.com, K2k.mydomain.com and etc.</p> <p>To verify that it is working, try ping utility <code>ping (insert anything here).mydomain.com</code> and you should get replies from IP.IP.IP.IP</p> <p>Then try browsing, http:// (insert anything here).mydomain.com/, you should get the same web page that you have configured.</p> <p><a href="http://web.archive.org/web/20120301164607/http://msmvps.com/blogs/bernard/archive/2005/03/22/39218.aspx" rel="nofollow noreferrer">Source</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload