Webserver2 - Using Hostname
Webserver2 - Using Hostname
Here we
configure 2 web sites running on the same port 80. The default web site created by IIS installation
runs on port 80. The second web site will also run on port 80. As the IP address and port number
used by both websites is same, to differentiate between these 2 websites the hostname field is used.
Login to the member server as administrator. Install IIS role if it is not installed already.
Go to Member server, and Create a new folder on C drive.
And in that folder create a file with extension as html. Provide any name to the file. Here we give the
file name as dac.html.
NOW
Go to the Domain Controller ( Main Server where ADDS is installed ) as we have to configure DNS
to map above website name to the IP address of the web server. Go to Server Manager -> Tools ->
DNS.
Right click on Forward Lookup Zones -> New Zone. The following wizard will start.
Keep Primary Zone. Uncheck the checkbox of Store the zone in Active directory option. Click Next.
Click Next.
Click Next on the above screen.
Click Add as shown in the blue colour on the right side. In the following window that opens, type the
hml file name given like dac.html.
Click OK.
Now Click the default Web Site. On the right side Click bindings option. In the bindings option that
opens, in the hostname field type the name for the default website like www.default.lab that you
created on the DNS server.
http://www.dac.com
This is how you can run multiple web site on the same IP address and same port 80.