Spinning up a web server, implementing the IIS role, and hosting a website are great first steps. Depending on the size and importance of your website, you may even require multiple web servers running that will serve up exact copies of the same website and have load balancing configured between the multiple web servers. On the other hand, it is probably more likely that your website will actually be an underutilization of your server's resources, rather than an overutilization, and so you have now created a new web server hosting a single website, and it's really not being taxed at all. Is there a way that we can make use of that extra hardware that is currently sitting idle? Perhaps you have additional websites or web services that need to be turned on, for which you were planning to spin up multiple servers. The good news is that IIS is capable of hosting many different websites at the same time. We can take that underutilized server and create additional website listeners on it so that you can serve up multiple web pages from the same physical server.
There are a couple of different ways that we can host multiple websites on the same IIS server at the same time, through the use of multiple ports or multiple IP addresses. Let's take a minute and test both avenues.
We are going to use IIS on our WEB1 server today in order to host multiple websites. We will also need access to DNS in order to create names for these websites.
Follow these steps to host multiple websites on the same IIS server:
c:inetpub
folder, I am simply creating four new folders. Inside each folder will be a simple Default.htm file that contains some text. This way I can serve up these different web pages on different sites inside IIS, and later browse to them individually to prove that IIS is serving up all of the different web pages.
http://web1:81
http://web1:82
http://web1:83
http://web1:84
http://site1.mydomain.local
http://site2.mydomain.local
http://site3.mydomain.local
http://site4.mydomain.local
Whether you decide to host multiple websites on a single web server by splitting up access at the port level or the IP address level, it is important to know that you can push the limits of your web server a little bit by hosting multiple things at the same time. IIS is more than capable of handling this division of resources, and as long as your hardware is keeping up with the task, you can continue to grow vertically in this way and save the number of servers you have running, rather than having to grow out horizontally by installing server after server after server, as you begin to need additional web resources.
3.142.98.153