Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS equivalent of VirtualHost in Apache

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

like image 815
Jon Avatar asked Nov 19 '08 19:11

Jon


People also ask

What is Virtualhost in Apache server?

Using Apache, an administrator can set up one server to host multiple domains or sites off of a single interface or IP by using a matching system. Each domain or individual site — known as a “virtual host” — that is configured using Apache will direct the visitor to a specific directory holding that site's information.

What is a virtual host in IIS?

"Virtual hosting" means hosting multiple web-sites with different domain names on the same IP address.

How configure virtual host IIS?

Open IIS manager and browse to your site (or choose default site). Select your web site and right-click the mouse and select “Add Virtual Directory“. In this window set the alias name and physical path where your webpage is stored. Press the OK button so it will create a virtual directory.

What is virtual directory in Apache?

In this article we will learn about Virtual Hosting or Virtual Directory using Apache. Introduction. Virtual hosting is a process for hosting multiple domain names on a single server. This is basically sharing the services of a single server for multiple companies or for multiple websites. Sometimes it's called Vhost.


1 Answers

You want to use Host Headers in IIS - that link will lead to a nice how-to page.

like image 167
ahockley Avatar answered Sep 30 '22 06:09

ahockley