locked
host multiple website on single webserver?? RRS feed

  • Question

  • User2024087390 posted
    ello all, I have a webserver as window server2008 iis 7 . now i want to run multiple websites on my single webserve..please guide me.... thankssss...
    Thursday, June 28, 2012 1:16 AM

Answers

  • User-1731511703 posted

    There is more than one way to do this.  However, I would recommend that you configure the sites using host headers.  If you have two sites named site1.com and site2.com, you would set the bindings for the first website to use 'All unassigned' for the IP address, 80 for the Port, and site1.com for the Host name.  You would then set bindings for the second website to use 'All unassigned' for the IP address, 80 for the Port, and site2.com for the Host name.

    If you wanted the sites to also respond to www.site1.com and www.site2.com, you would need to add bindings like above except using www.site1.com and www.site2.com as the Host name respectively.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, June 28, 2012 6:58 AM

All replies

  • User-1731511703 posted

    There is more than one way to do this.  However, I would recommend that you configure the sites using host headers.  If you have two sites named site1.com and site2.com, you would set the bindings for the first website to use 'All unassigned' for the IP address, 80 for the Port, and site1.com for the Host name.  You would then set bindings for the second website to use 'All unassigned' for the IP address, 80 for the Port, and site2.com for the Host name.

    If you wanted the sites to also respond to www.site1.com and www.site2.com, you would need to add bindings like above except using www.site1.com and www.site2.com as the Host name respectively.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, June 28, 2012 6:58 AM
  • User1786740602 posted

    Depending on the number of IPs you have, point the domains to the IPs assigned to the server, set up each site in IIS as a separate site and use host headers, so IIS knows which site to return.

    This article will show you how to configure host headers in IIS 7 http://technet.microsoft.com/en-us/library/cc753195(WS.10).aspx 

    Thursday, June 28, 2012 6:59 AM
  • User2039363532 posted

    HI!

    If you want to point your site with IP address then you can bind the site with port number.

    For Example,

    if you want to browse site1 then you can type http://192.168.1.226:80

    same way if you want to browse site2 then you can type http://192.168.1.226:81

    This is call Port Binding with an IP Address.

    To Bind the port with any IP(using IIS) you can do the following :

    1. Open IIS Manager.

    2. In the Connections pane, expand the Sites node in the tree, and then click to select the site for which you want to add a binding.

    3. In the Actions pane, click Bindings.

    4. In the Site Bindings dialog box, click Add.

    5. In the Add Site Binding dialog box, select the type of your site, Select IP of your Site and assign port which you want to assign then click OK.

    Another way to do that by specifying host header value in host file.

    For that do the following steps:

    1. In run dilogbox type following path:
      %systemroot%\System32\drivers\etc
    2. Open "hosts" file.
    3. Insert your IP and site name into end of file.
      For Example :
      192.168.1.226      site1.com
      192.168.1.226      site2.com

    Now you can surf that two site(site1.com & site2.com) on same IP with same port.

    Regards.

    Thursday, June 28, 2012 9:22 AM