PDA

View Full Version : Co-Domain Leads to Shared IP Message


sapph
4th July 2007, 03:40
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.

till
4th July 2007, 10:42
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.

sapph
4th July 2007, 20:05
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.

Hans
4th July 2007, 20:12
Does the forward "unstable" exists within your web?

sapph
4th July 2007, 20:27
The directory exists, yes.

sapph
4th July 2007, 20:34
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

Hans
4th July 2007, 20:45
Does http://www.hbtest.info/unstable/ or http://hbtest.info/unstable/ work if you put it within the forward field?

sapph
4th July 2007, 20:47
I will try, but wouldn't that be a logical loop? You are defining the location of hbtest.info as hbtest.info/unstable?

Hans
4th July 2007, 20:57
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.

sapph
4th July 2007, 20:59
Well, I tried it, and I think I was right. Firefox came up with this:

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

And the address bar showed:

http://hbtest.info/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/unstable/index.php

antun
16th August 2007, 07:54
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

till
16th August 2007, 10:57
If you get the shared IP message, then the (co) domain does not point to the IP that you selected for the website.

antun
16th August 2007, 17:31
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

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

till
16th August 2007, 17:41
Please add the co-domains with www too, if you want to access them as www.def.com and not just def.com

antun
16th August 2007, 20:39
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


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

till
16th August 2007, 21:19
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.

antun
16th August 2007, 22:25
Thanks! That worked. I didn't know that I had to empty the recycle bin.

-Antun

... and empty the recycle bin.