Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Multiple web site hosting in IIS having multiple domain names with static ip

Multiple web site hosting in IIS having multiple domain names with static ip

Scheduled Pinned Locked Moved .NET (Core and Framework)
wpfwcfcomsysadminwindows-admin
5 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vinay Varghese
    wrote on last edited by
    #1

    Hi, I have 2 domain names such as www.abc.com and www.xyz.com. I have a machine which is having a manual ip address of 192.168.1.100 and in this machine I have created two websites in the IIS 7.5 in Windows 7, In the binding properties, I have set the ip address assigned/unassigned and the host name to the domain name www.abc.com to one web site and www.xyz.com to the other website, also both the websites run on port 80. I have a dynalink router, where I have set the Virtual Server => Port Forwarding => Web Server pointing to 192.168.1.100 machine. I am not able to view the web sites when I give by domain names, when i type www.abc.com I wish to see website1 and www.xyz.com I wish to see website2, When i tried removing the host names from the binding, I am able to view my website1 after typing the domain name www.xyz.com. Is there anything I am missing or pointing wrongly ? or doing wrong here ? Please advise. Thanks Vinay

    T 1 Reply Last reply
    0
    • V Vinay Varghese

      Hi, I have 2 domain names such as www.abc.com and www.xyz.com. I have a machine which is having a manual ip address of 192.168.1.100 and in this machine I have created two websites in the IIS 7.5 in Windows 7, In the binding properties, I have set the ip address assigned/unassigned and the host name to the domain name www.abc.com to one web site and www.xyz.com to the other website, also both the websites run on port 80. I have a dynalink router, where I have set the Virtual Server => Port Forwarding => Web Server pointing to 192.168.1.100 machine. I am not able to view the web sites when I give by domain names, when i type www.abc.com I wish to see website1 and www.xyz.com I wish to see website2, When i tried removing the host names from the binding, I am able to view my website1 after typing the domain name www.xyz.com. Is there anything I am missing or pointing wrongly ? or doing wrong here ? Please advise. Thanks Vinay

      T Offline
      T Offline
      T M Gray
      wrote on last edited by
      #2

      You don't say what happens when you try to access by domain name. Do you go to the wrong site? Does it say server not available? Where do you have the DNS entries defined? Do you have nameservers established? To test your IIS configuration you can go to a machine on your local 192.168 network and add entries to the hosts file for your domains pointing to the 192.168.1.100 address.

      V 1 Reply Last reply
      0
      • T T M Gray

        You don't say what happens when you try to access by domain name. Do you go to the wrong site? Does it say server not available? Where do you have the DNS entries defined? Do you have nameservers established? To test your IIS configuration you can go to a machine on your local 192.168 network and add entries to the hosts file for your domains pointing to the 192.168.1.100 address.

        V Offline
        V Offline
        Vinay Varghese
        wrote on last edited by
        #3

        The domain names which I have is pointing to my static IP address 65.149.23.34. Then in my router I have pointed to the web server of machine 192.168.1.100 In the IIS of the machine 192.168.1.100, I have created two websites and set the host names for both the websites to my domain name. When I enter the domain names it says page cannot be accessed. But when I remove the host names from the websites of IIS and access by one domain name, I can access my web page. Does WINDOWS 7 IIS support only 1 website hosting is it , Do I need to try in windows server 2003 ?

        T 1 Reply Last reply
        0
        • V Vinay Varghese

          The domain names which I have is pointing to my static IP address 65.149.23.34. Then in my router I have pointed to the web server of machine 192.168.1.100 In the IIS of the machine 192.168.1.100, I have created two websites and set the host names for both the websites to my domain name. When I enter the domain names it says page cannot be accessed. But when I remove the host names from the websites of IIS and access by one domain name, I can access my web page. Does WINDOWS 7 IIS support only 1 website hosting is it , Do I need to try in windows server 2003 ?

          T Offline
          T Offline
          T M Gray
          wrote on last edited by
          #4

          The only thing I can find with a feature breakdown by OS is here[^] but it doesn't mention host headers. If you are using win 7 professional it doesn't look like a lot of differences. If you are on a lesser version that may be the problem.

          V 1 Reply Last reply
          0
          • T T M Gray

            The only thing I can find with a feature breakdown by OS is here[^] but it doesn't mention host headers. If you are using win 7 professional it doesn't look like a lot of differences. If you are on a lesser version that may be the problem.

            V Offline
            V Offline
            Vinay Varghese
            wrote on last edited by
            #5

            I tried using windows server 2003 and iis 6.0, it worked, I created virtual websites under my website,giving different domain names under the host headers and it worked. Thanks Vinay

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups