Search code examples
c#.netwindowsiisserver

Windows Server more application with different address


I have one, maybe easy question. I have my .NET application on Windows Server. Is there any possibility how run the next application on another url? I normally use different ports on testing application. But now I need next application with port 80.

For example, I have a server with IP 80.1.2.3. Now is running their application with the url test.com And I want to add new application to the url anothertest.com

Is it possible? Thank you very much :)


Solution

  • You can refer below steps:

    1. Open IIS Manager.

    2. In the Connections pane, expand the Sites node in the tree, and then select the site for which you want to configure a host header.

    3. In the Actions pane, click Bindings.

    4. In the Site Bindings dialog box, select the binding for which you want to add a host header and then click Edit or click Add to add a new binding with a host header.

    5. In the Host name box, type a host header for the site, such as test.com.

    6. Click OK.

    7. To add an additional host header, create a new binding with the same IP address and port, and the new host header. Repeat for each host header that you want to use this IP address and port.