Domain Mirroring...?

robj

Verified User
Joined
Aug 4, 2007
Messages
53
Does DA support domain mirroring?

I'm under the impression that domain pointing will redirect from domain B to domain A. Example:

If I have 2 domains, D1.com and D2.com. My site resides on D1.com, but if people enter D2.com, I want to show exactly the same content (mirroring) with the D2.com URL.

I do not want to redirect from D2.com to D1.com.

Is this option available? Or will it be in the future?

thx
robj
 
Yes

I believe you are looking for the alias functionality that apache gives you. For instance, you can go to domain.com or domain.net and get the same web site, but only have one actual site. We have several clients that are doing this.

This to my knowledge does have 'mirroring' abilties over multiple servers.
 
What's the difference if you have it point or mirror? Different name, same end results as D2.com will go to D1.com.

Go into Domain Pointers, enter domain to go to and tick off alias. Problem solved.
 
GXX, You're not looking at the big picture. Quick example: Say I've had a subdomain sub.mypersonalsite.com. It became so popular I want it to have it's own domain, mysub.com. But I don't want to transfer all data, because it's a turtorial site, and alot of people have it bookmarked. Mirroring will allow for a "new site" without having to transfer files and re-link my url's within the DB.

bclak94,
Do you know how to accomplish this? I don't need to mirror a second server... I only have 1, just domains.

Thanks
 
You need to explain yourself better then. All you said was D1.com and D2.com. My suggestion solves this problem correctly.

Read what you posted, there is no mention of performing the scenerio you described involving the sub-domain.

Either way, you can probably get away with performing this 'mirroring' by doing some mod_rewrite rules.
 
I want to show exactly the same content (mirroring) with the D2.com URL.
I do not want to redirect from D2.com to D1.com.

-----------------------------------------------

hehachris, please refer to my post 2 above yours.
 
If both domains are at the same level you can use the Alias function built into DirectAdmin. If the target is a subdomain implented as a subdirectory inside the public_html directory of some other site, then you can still create an alias, but then find the user specific html.conf file, and change the web directory setting of the new domain name.

To keep it from being overwritten you'll need to chattr it as non-writable.

Jeff
 
this is what I get...

Unable to add domain pointer

Details

You cannot use that domain as a pointer. It already exists on the server

Any suggestions?

rob
 
Check your DNS and see if it's already added in there. Remove it and try again.
 
It's not there.... I don't get it.
domainname1.net. A XX.XXX.XX.XXX
ftp A XX.XXX.XX.XXX
localhost A 127.0.0.1
mail A XX.XXX.XX.XXX
pop A XX.XXX.XX.XXX
webmail A XX.XXX.XX.XXX
www A XX.XXX.XX.XXX
domainname1.net. NS ns1.NAMESERVER.com.
domainname1.net. NS ns2.NAMESERVER.com.
mail MX 10
domainname1.net. TXT "v=spf1 a mx ip4:XX.XXX.XX.XXX?all"

I tried adding a pointer for other domains, within my account, but none of them are working. I get the same error. I host my domains on godaddy, but I can't find the option there either.

I can't image my previous host was the only company that does this. What kind of record do I need to add? Thanks

rob
 
If both domains are at the same level you can use the Alias function built into DirectAdmin. If the target is a subdomain implented as a subdirectory inside the public_html directory of some other site, then you can still create an alias, but then find the user specific html.conf file, and change the web directory setting of the new domain name.
To keep it from being overwritten you'll need to chattr it as non-writable.
Jeff

Could anybody write me more about how to do that ? I guess I am in the same situation - I had one domain (i.e. photo.idl.pl), made a subdomain of this domain (gallery.photo.idl.pl) and set up website in this subdomain. Then I bought a new domain (i.e. photo.info) and I want my new domain to point to this directory (but no redirection, I want both adresses photo.info and hallery.photo.idl.pl work equally).

I have no problems when I want to assign new domain to the old domain in the DA panel (photo.info shows the same content as photo.idl.pl), but I don't know how to do this exactly for subdomain.

Where can I find html.conf and how to set it up ?


BTW - I was sure, that when I was using DA on my other site some time ago, there was an option to assign newly bought domain to any existing subdomain... Am I wrong ?
 
BTW - I was sure, that when I was using DA on my other site some time ago, there was an option to assign newly bought domain to any existing subdomain... Am I wrong ?
If the subdomain is set up (with DirectAdmin) not as a subdomain, but rather as it's own domain, you can do this. It's actually the easiest way.

Jeff
 
If the subdomain is set up (with DirectAdmin) not as a subdomain, but rather as it's own domain, you can do this. It's actually the easiest way.
Jeff

thx, jlasman

How can I set up subdomain as a domain ? And what shoud I do next - domain redirection with "alias" option ?
 
To set up a subdomain as a domain click on Domain Setup. If that doesn't allow you to add another domain (the subdomain) then contact your provider for assistance.

If the subdomain is NOT on the same server as the main domain, you'll have to set up either a full DNS zone, or nameserver records for the subdomain, wherever DNS for the main domain is hosted.

You can use domain redirection with the alias option.

Jeff
 
To set up a subdomain as a domain click on Domain Setup. If that doesn't allow you to add another domain (the subdomain) then contact your provider for assistance.

If the subdomain is NOT on the same server as the main domain, you'll have to set up either a full DNS zone, or nameserver records for the subdomain, wherever DNS for the main domain is hosted.

You can use domain redirection with the alias option.

Jeff

Ok, so I added "galeria.fotografia.idl.pl" as a main domain, but it's public_html folder is different (new folder) from public_html folder of the "galeria.fotografia.idl.pl" created as a subdomain of fotografia.idl.pl. Now galeria.fotografia.idl.pl opens my gallery page, and galeria.fotopolska.info redirects to empty page of "galeria.fotopolska.idl.pl" ... :)

It's not the matter of life and death for me, I could just create new galery in "galeria.fotopolska.info" but I am just curious if it is possible to do what I want. And I want to avoid possible problems with database of the gallery related to domain change if I wouldn't buy fotopolska.info in next year.
 
I'm sorry if my response wasn't as complete as it might have been.

When you create the new subdomain as a domain you should create the content there (depending on the software you're using you may be able to just transfer the contents in the old subdomain).

Do you need the contents to be available from fotografia.idl.pl/galeria as well? If so you'll probably have to do some redirecting. If you own the server you may be able to create the public_html of galeria.fotografia.id.pl as a link to the public_html/fotografia.idl.pl/galeria but whether that would work or not would be depending on the software and what ownership and permissions it requires.

Jeff
 
Jeff, thank You VERY much for Your time and effort in solving my problem. That way it should work, I can also create symlink from fotografia.idl.pl/galeria to public_html of fotopolska.info - (I can ask my provider for ssh access, just din't want to do this).

I just thought there is a simplier way ;)

Michael
 
Back
Top