Co-Domain Leads to Shared IP Message

Discussion in 'Installation/Configuration' started by sapph, Jul 4, 2007.

  1. sapph

    sapph New Member

    I am transferring my domains to a new host. I don't want to effect the transfer until I have everything working, obviously, so I bought a test domain I can use. I set the test domain (we'll call it hbtest.info) as a co-domain to the main one (call it h-b.com). I have a subdirectory of h-b.com's doc root called unstable I want hbtest.info to point to.


    Here are the co-domain settings:
    Hostname: www
    Domain: hbtest.info
    Create DNS: checked
    Create DNS MX: unchecked
    Forward: unstable

    On my host's DNS panel, I created a zone for hbtest.info. I set the A to the same IP that h-b.com is using. CNAME is set to hbtest.info.

    When I browse to hbtest.info, I get the " This IP address is shared. For access to the web site which you look for, enter its address instead of its IP" page.

    If any more information is required to solve this problem, please let me know. Any help is greatly appreciated.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do not create co-domains with hostname www. The website should have the hostname "www" and then ISPConfig creates a co-domain with an empty hostname automatically for you (when you set the domain limit at least to 2).

    If you use a external DNS panel, do not check the create dns checkbox.

    You get a shared IP message when you select the wrong IP address in the website settings.
     
  3. sapph

    sapph New Member

    I removed the www from the hostname of the co-domain.
    I unchecked the Create DNS box.
    I double checked the IP - it is correct.

    I still get the error page.
     
  4. Hans

    Hans Moderator Moderator

    Does the forward "unstable" exists within your web?
     
  5. sapph

    sapph New Member

    The directory exists, yes.
     
  6. sapph

    sapph New Member

    Just to make sure I am using the correct functionality here:

    h-b.com's doc root is /var/www/web1/web
    I want hbtest.info's doc root to be /var/www/web1/web/unstable

    And, actually, I've got a third domain - w-b.com. I want its doc root to be /var/www/web1/web (the same as h-b.com).

    I'm not terribly sure about the best way of doing any of it, I just took my best guess with hbtest.info
     
  7. Hans

    Hans Moderator Moderator

  8. sapph

    sapph New Member

    I will try, but wouldn't that be a logical loop? You are defining the location of hbtest.info as hbtest.info/unstable?
     
  9. Hans

    Hans Moderator Moderator

    you can specify the target of the forward, e.g. another URL or a path to a directory of your site.

    When you forward to a directory within the same web the path should be better indeed.
     
  10. sapph

    sapph New Member

  11. antun

    antun New Member

    I'm experiencing the same problem. I'm running the latest version of ISPConfig.

    The "Max. Domain" value is set to -1. I presume that means unlimited.

    In the ISP Site, the hostname for my domain (call it abc.net, for now) is www. Under Co-Domains, I have three domains listed. All three use the same IP address.

    The first is the automatically-created one for abc.net.

    The second and third are two different TLDs (call them def.com and ghi.com). None of the co-domains have "www" in the hostname.

    Any ideas?

    -Antun
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    If you get the shared IP message, then the (co) domain does not point to the IP that you selected for the website.
     
  13. antun

    antun New Member

    I think it does point to the IP. When I do an nslookup for www.def.com and def.com, I get the correct IP. Under Co-Domains, the same IP (the server that I'm using) is used for all three domains.

    -Antun

     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Please add the co-domains with www too, if you want to access them as www.def.com and not just def.com
     
  15. antun

    antun New Member

    When I tried to add another codomain with www as the hostname and def.com for the domain, I got the following error:

    The name www.def.com is already in use by another site or domain.

    So I removed the existing Co-Domain for def.com altogether and tried to re-create it from scratch. But every time I try to create a www.def.com Co-Domain, I get the same error.

    I can create def.com as a Co-Domain.

    -Antun


     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    If you get the error, then there is alraedy a co-domain or website for www.def.com. Delete this record first and empty the recycle bin. Then you will be able to create the new co-domain.
     
  17. antun

    antun New Member

    Thanks! That worked. I didn't know that I had to empty the recycle bin.

    -Antun

     

Share This Page