locked
I have an IIS version 7.5 . I would to create multiple website on that server. RRS feed

  • Question

  • User-1861515520 posted

    Hello everyone

    Now, I have one windows server 2008 and IIS version 7.5 . I would to create multiple website on that server.

    Example:

    i have one website in http://192.168.1.226 when i call this it's have open website 1.

    Now, i have two website. i would to call website in http://site1.192.168.1.226 for open website1.

    and call http://site2.192.168.1.226 for open website2.

    and then the client side can call those.

    Could someone explain to me. How to do that? ^___^

    Thank you for advance

    Mr.Jittaboy

    Thursday, June 14, 2012 6:51 AM

Answers

  • User1771049139 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.

    Hope this information will help you.

    Regards.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 14, 2012 10:57 AM
  • User-1853252149 posted

    You're asking an IIS question in an ASP.NET forum.  The forums at IIS.net would be a better place.  Or you could use Bing and find:

    http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx
    http://social.msdn.microsoft.com/Forums/en/wcf/thread/d188488c-4c0a-40b5-afe1-7f47891e4f3c

    Jeff

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 22, 2012 10:35 AM

All replies

  • User1771049139 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.

    Hope this information will help you.

    Regards.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 14, 2012 10:57 AM
  • User-1861515520 posted

    Thank you. ^__^      Is it possible to create multiple website without separate port number?

    Is there another way to create multiple website in localhost without separate port ?

    Regards.

    / Jittaboy

    Friday, June 15, 2012 4:09 AM
  • User-1861515520 posted

    ^__^  I couldn't to do that.

    Could someone tell me how to do that without separate port? 

    Thank you for advance

    Mr.Jittaboy

    Tuesday, June 19, 2012 1:03 AM
  • User71929859 posted

    ^__^  I couldn't to do that.

    Could someone tell me how to do that without separate port? 

    Thank you for advance

    Mr.Jittaboy

    Hello,

    As far as I know, without a different port or without a different hostname, it's impossible to distinguish between two websites so you can't achieve this without using a seperate port.

    Tuesday, June 19, 2012 9:10 AM
  • User1771049139 posted

    Hi!

    Yes, you can 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.

     

    Tuesday, June 19, 2012 9:22 AM
  • User-1861515520 posted

    Thank you very mush for all answer me. ^__^   

    if i have configuration etc file in %systemroot%\System32\drivers\etc.

    yes, it's work. But if we open website on client computer. it doesn't open.

    i think on client computer. it doesn't detect etc file in server. 

    i don't know how to shared etc file for client computer? 

    Is it possible to shared "etc file" for client computer? 

    Regards

    /Jittaboy

    Thursday, June 21, 2012 3:53 AM
  • User-1853252149 posted

    You're asking an IIS question in an ASP.NET forum.  The forums at IIS.net would be a better place.  Or you could use Bing and find:

    http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx
    http://social.msdn.microsoft.com/Forums/en/wcf/thread/d188488c-4c0a-40b5-afe1-7f47891e4f3c

    Jeff

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 22, 2012 10:35 AM
  • User-1861515520 posted

    Thank you for suggestion . ^__^

    Monday, June 25, 2012 1:27 AM
  • User426336715 posted

    Hi,

    Have you got any solution, i am also looking for the same.

    Tuesday, October 8, 2013 11:18 PM