In this tutorial, we will perceive how to make a virtual host utilizing IIS Web Server on Windows Server 2012. Virtual Directory or virtual hosting is a procedure for hosting numerous domain names on a single server. This is basically sharing the services of a single server for multiple companies or for multiple websites. Now and again its called Vhost. A Virtual Host is ususally utilized by an organization or association that would like to keep up or buy numerous servers. Virtual Hosting can be supported using IIS Web Server or utilizing Apache Web Server.

1. First, you should Install IIS on your server and then restart it.
2. Open the IIS manager and browse to your site (or choose default site).

3. And then, Choose your site and right-click the mouse and select “Add Virtual Directory“ as you can see on the picture below.

In this window set the alias name and physical path where your website page is put away. Press the OK button so it will make a virtual registry. The alias name is the name to get to this index over the web. For instance with an alias of abc_alias we can get to it utilizing the accompanying URL: www.domain.com/abc_alias/.

Now make the default website page on that "Physical Path index", for instance home.html, default.asp and abc.html. This default site page must be added to the Default Document Set. So it load when the virtual directory is hit over the internet.

Then include the default website page passage into the "Default Document" of the current Virtual Directory. Open it by twofold clicking on the Default Document Icon.

Click Add from the top-right corner and include your default page name with extension. For example homepage.html.

Now test your sub-domain in the web program utilizing IIS or with a URL. Syntax: Host_Name/Virtual_Directory_Name.

Use the same process for creating multiple Virtual Directories. As shown in the preceding image there are three Virtual Directories created that can be accessible using the following URLs.

www.domain.com/aaa/
www.domain.com/bbb/

www.domain.com/subdomain/

HostForLIFE.eu IIS 8.0 Hosting
HostForLIFE.eu is European Windows Hosting Provider which focuses on Windows Platform only. We deliver on-demand hosting solutions including Shared hosting, Reseller Hosting, Cloud Hosting, Dedicated Servers, and IT as a Service for companies of all sizes. We have customers from around the globe, spread across every continent. We serve the hosting needs of the business and professional, government and nonprofit, entertainment and personal use market segments.