IIS equivalent of VirtualHost in Apache
-
08-07-2019 - |
Question
Is there an equivalent to Apache's VirtualHost for IIS? We want to be able to run multiple websites from one IP and address them with different DNS names.
i.e. I have
www.dom1.com
www.dom2.com
www.dom3.com
that all point to 123.123.10.1
. Apache would just be running on port 80 and just use virtualhost to decide which site should be served.
Is this possible in Windows IIS6?
Thanks
Solution
You want to use Host Headers in IIS - that link will lead to a nice how-to page.
OTHER TIPS
As rob_g suggested, if you already have a website running (eg. default website) you can also select 'Edit bindings' on the website and specify a hostname.
Create a new virtual host:
iis manager --> (local computer) --> right-click Web Sites --> New --> Web Site
Check/change/add hostname information (the other hostname to recognize) on a virtual host:
iis manager --> (local computer) --> Web Sites --> right-click/properties on one of the sites --> Web Site --> Advanced --> "Multiple identities for this Web site"