Web Hosting Talk







View Full Version : Automatic redirection problem


ABW
06-27-2001, 09:42 AM
I have an account at tera-byte, with a dedicated IP.

IP : 123.123.123.123*
Domain : domain1.com*

I did the change for domain1.com to reflect tera-byte DNS (ns1.tera-byte.com & ns2.tera-byte.com) and I have to wait for the propagation.

Meanwhile I'd like to point an other domain name with and "A Record" on this IP.
Example : test.domain2.com* ===> 123.123.123.123.
I created the record (with zoneedit.com) but when I type this (test.domain2.com) it redirect me correctly to the IP 123.123.123.123 BUT after that it redirects me to domain1.com which doesn't work (waiting for propagation)

What is the problem with this ? When I create an "A Record" to point to an IP on a linux server I don't have this problem...
Does it mean that I can't create an A record to point to a RAQ IP ?

Thanks in advance.

* : fictitious

(And I don't have root access of course)

huck
06-27-2001, 11:42 AM
First, a Raq runs on Linux, Cobalt Linux which is nothing more than a modified version of RedHat Linux.

If I understand your post correctly, you have
domain1.com => 123.123.123.123
domain2.com => 123.123.123.123

Which means you are using virtual named-based hosting and not assigning unique IPs to each domain name.

You must have mis-configured the name of domain2.com on the server. If domain2.com propogation is complete, then typing domain2.com should send you to the domain2.com virtual host on your server. The only way that it would re-direct to domain.com is if your server configuration is not correct.


Of course, I am assuming that domain2.com is a full virtual host and not simple a host alias for domain.com. I am also assuming that you have set up your DNS correctly to resolve test.domain2.com and that on the server you have specified test.domain2.com as a server alias under the domain2.com virtual host.

Chicken
06-27-2001, 05:07 PM
I'm assuming that you *meant* that you are pointing test.domain2.com to the IP 123.123.123.123 which has the other site set up, and within that site is an index.cgi script that should be redirecting to a spacific place.

If not, then that's your problem.

RaQs do have a URL rewrite 'feature' that can be annoying (this is what is happening when you say, "it redirect me correctly to the IP 123.123.123.123 BUT after that it redirects me to domain1.com") but regardless, you can't simply point various domains with A records to an IP on a server and hope the server will automagically know where to direct things.

From reading this, it seems you are missing a crucial piece of the puzzle. You either need the domain set up on the server, or you need to use a script of some sort to direct things.

ABW
06-28-2001, 09:15 AM
Originally posted by Chicken

RaQs do have a URL rewrite 'feature' that can be annoying (this is what is happening when you say, "it redirect me correctly to the IP 123.123.123.123 BUT after that it redirects me to domain1.com") but regardless, you can't simply point various domains with A records to an IP on a server and hope the server will

Thank you chicken, I think this is the problem I'm experiencing... I will contact tera-byte

And sorry for my poor english :(

Chicken
06-28-2001, 12:39 PM
English is great! Though tera should be able to help you out and find a solution...