« Previous Next »

Thread: Create Web site. Am I missing something?

Last post 11-07-2009 2:48 AM by steve schofield. 9 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (10 items)

Sort Posts:

  • 11-06-2009, 7:49 PM

    • shapper
    • Top 150 Contributor
    • Joined on 11-28-2004, 9:15 PM
    • Posts 46

    Create Web site. Am I missing something?

    Hello,

    I have IIS installed on my Windows 2008 server and when I access on a browser my ip:

    http://xxx.xx.xxx.xx

    I see the IIS page. The same happens when I access:

    http://xxx.xx.xxx.xx:80

    Now I created a new web site on port 80 and added the bindings:

    mydomain.pt, www.mydomain.pt, mydomain.com and www.mydomain.com

    It is on the same IP and port 80.

    I access it using any of the domains and I get "Server not found".

    Am I missing something when creating a web site?

    On the web site folder I have a index.html with some text on it.

    Thanks,

    Miguel

     

  • 11-06-2009, 9:33 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,417

    Re: Create Web site. Am I missing something?

    The problem is you don't understand host header yet. Please learn about it from here

    http://support.microsoft.com/kb/308163

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 11-06-2009, 9:57 PM In reply to

    • shapper
    • Top 150 Contributor
    • Joined on 11-28-2004, 9:15 PM
    • Posts 46

    Re: Create Web site. Am I missing something?

    Your link is about IIS5. I am using IIS7.

    I don't have most of the options described on that article in my IIS7 

    I created the web site, choosed a folder for it, an application pool and selected the bindings (which I think creates the host headers). For example the first binding is:

    http://mydomain.com   Port 80

    Isn't this enough?

    Can someone please be specific of what else do I need to do?

    I am not able to find the solution.

    Thanks,

    Miguel

  • 11-06-2009, 10:13 PM In reply to

    Re: Create Web site. Am I missing something?

    Make sure all the domains resolves to the same ip address.   For testing, you can set all domains using the local hosts file, 

    http://weblogs.asp.net/steveschofield/archive/2007/03/04/how-to-use-a-hosts-file-to-test-a-site-that-uses-host-headers-on-an-intranet-and-internet.aspx

    if you are going to have all domains resolves to the same site, just have all assigned and you'll be fine.   Host-headers would be another way to have multiple websites on the same box, using the same ip address

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 11-06-2009, 10:34 PM In reply to

    • shapper
    • Top 150 Contributor
    • Joined on 11-28-2004, 9:15 PM
    • Posts 46

    Re: Create Web site. Am I missing something?

    I tried the PING as stated in that article but I don't get any IP:

    Microsoft Windows [Version 6.0.6002]
    Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

    C:\Users\Administrator>PING IIS
    Ping request could not find host IIS. Please check the name and try again.

    C:\Users\Administrator>PING WIN-86UB8AGFNGB

    Pinging WIN-86UB8AGFNGB [fe80::d554:6c80:5504:688b%10] from fe80::d554:6c80:5504
    :688b%10 with 32 bytes of data:
    Reply from fe80::d554:6c80:5504:688b%10: time<1ms
    Reply from fe80::d554:6c80:5504:688b%10: time<1ms
    Reply from fe80::d554:6c80:5504:688b%10: time<1ms
    Reply from fe80::d554:6c80:5504:688b%10: time<1ms

    Ping statistics for fe80::d554:6c80:5504:688b%10:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 0ms, Average = 0ms

    C:\Users\Administrator>

    I know the IP but shouldn't this command return the IP?

  • 11-06-2009, 10:40 PM In reply to

    • shapper
    • Top 150 Contributor
    • Joined on 11-28-2004, 9:15 PM
    • Posts 46

    Re: Create Web site. Am I missing something?

    steve schofield:
    if you are going to have all domains resolves to the same site, just have all assigned and you'll be fine.   Host-headers would be another way to have multiple websites on the same box, using the same ip address
     

    Basically I have only one IP in my VPS and I need to host 4 sites, 3 of them must have 2 domains.

    So I created the 4 web sites and edited the bindings for each one by adding the their domains and selecting always port 80 and the only IP I have on the VPS.

    As far as I know this should be enough ... But it is not working.

    And this is what is confusing me. And the answers I get or the text I find in internet or says this is the right way to do it or it is confusing and does not clarify me.


  • 11-06-2009, 10:41 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,417

    Re: Create Web site. Am I missing something?

    shapper:

    Your link is about IIS5. I am using IIS7.

    I don't have most of the options described on that article in my IIS7 

    I created the web site, choosed a folder for it, an application pool and selected the bindings (which I think creates the host headers). For example the first binding is:

    http://mydomain.com   Port 80

    Isn't this enough?

    That's all you need to do on IIS side. Other configuration you have to do (either configuring DNS server or modifying local HOSTS file, is purely a networking issue on how to direct data to the IIS web site.)

    Though the KB article I provided is for IIS 5, it illustrates what is host header.

    Regards,


    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 11-06-2009, 10:41 PM In reply to

    • shapper
    • Top 150 Contributor
    • Joined on 11-28-2004, 9:15 PM
    • Posts 46

    Re: Create Web site. Am I missing something?

    And by the way:

    When I access my IP on a browser I get the IIS page so it is working.

    When I use the domain I get "Server not found"

     

  • 11-06-2009, 10:58 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,417

    Re: Create Web site. Am I missing something?

    "Server not found" means your web browser cannot locate the IIS server. Please review networking settings instead of IIS settings.

    Possible causes can be,

    1. Your browser cannot translate the domain name to the IP address of your IIS server. Then you need to configure DNS or local HOSTS file on the browser machine.

    2. Your DNS record is wrong and points to an invalid address.

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 11-07-2009, 2:48 AM In reply to

    Re: Create Web site. Am I missing something?

    one way to check your dns is to look at www.dnsstuff.com

     

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
Page 1 of 1 (10 items)
Microsoft Communities