domain alias

aardening

Verified User
Joined
Aug 20, 2004
Messages
7
I've checked the board for similar questions, but didn't find the answer I'm looking for.

Q:

I have domain1.com with site and email etc.
I have domain2.com with email

I want domain2.com to show exact the same website but with domain2.com as url AND also the correct path for pages,

like:

domain1.com/section1/page2.html
and
domain2.com/section1/page2.html
is exact the same page.

For this I have created a cname in the DNS of domain2.com
like domain2.com in CNAME domain1.com

However, from here on I do not know what to do.

Creating a domainpointer for domain1.com doesn't work, because domain2.com already has a presence on the server.
Of course I can move domain2.com to another server and try again, but I'd like to solve this remaining both domains on the same server.

Anyone?

ron.
 
Last edited:
It takes more than a CNAME record. In fact, the CNAME record may not even be necessary.

The first thing you have to do (and I presume you've done it) is make sure the DNS for the second domain points to the same IP# as the first domain.

For example, if both domains use the same IP#, then you don't even have to change the second domain's DNS at all. If they do you can either:

Replace the A record for the second domain with a CNAME record pointing to the first domain. This is what I presume you've done.

or

You can replace the A record for the second domain with another A record pointing to the IP# of the first domain.

Be sure to have either proper A or CNAME records for the second domain both with and without www.

Then the rest has to be done by your hosting company because you can't change your httpd.conf records yourself:

They have to change the httpd.conf file for the second domain to use the same DocumentRoot setting as the first domain and reload httpd.

Jeff
 
Back
Top