Search code examples
asp.netiiswindows-server-2016

Deploy many ASP.NET in IIS in Public IP


I have one VPS window server 2016. I want to host many ASP.NET application in VPS. And access it over Internet. I deployed many site with different port but I only access it by public ip and port 80 (Default Site).

I want to ask how to host many site in one Public IP and different port. Or many path such as tomcat server (publicip:8080/app1; publicip:8080:app2).


Solution

  • You can publish all your sites on port 80 by using a different host header in each site.

    Site1.yourdomain.com Site2.yourdomain.com

    Site1.otherdomain.com Site2.otherdomain.com

    All of them can be published in IIS over port 80.