Pointing Multiple Domains to same account

blast

Verified User
Joined
Oct 16, 2004
Messages
8
Hello,

looking for a solution for this.

In Ensim it was simpel, i only wrote which domain i wanted under "Domain Alias" and my account went multiple, so i could use both .net and .com as standard. Etc in my ftp and email software.

ftp.mydomain.net or ftp.mydomain.com, [email protected] or [email protected] and mail.mydomain.net or mail.mydomain.com. It worked great in both way.

If i now use Domain Pointer in DA and if i type http://www.mydomain.net/index/mypage.html it being forwared to http://www.mydomain.com/index/mypage.html

And that is not how i really want it to be. I want it to stay at http://www.mydomain.net/index/mypage.html - but it should still be exactly the same page as in http://www.mydomain.com/index/mypage.html. Because they would go to exactly same files.

If you know how to solve this please let me know how to, it would really help me.

Thank you,
 
Hey,

I haven't tried this but,

I'd think, logged in as Admin, you could go to "Custom HTTPD Configurations" and add a "ServerAlias" or two to the configuration for the domain you want to point the .com or .net to.

You'd also have to make sure your DNS is point to that site/IP as well.

David
 
Hello,

i tried that before but i didn't help.

But i give it one more chance now.

Now it looks like this:

<VirtualHost MY.IP.*.*:80>
ServerAlias mydomain.net www.mydomain.net

ServerName www.mydomain.com
ServerAlias www.mydomain.com mydomain.com
ServerAdmin [email protected]
DocumentRoot /home/username/domains/mydomain.com/public_html
ScriptAlias /cgi-bin/ /home/username/domains/mydomain.com/public_html/cgi-bin/

and more.

Is that right think? That is how it was last time, and it didn't work.

"Can't find mydomain.net". I will wait a little bit, maybe its mine ISP DNS?

Thanks,
 
Hi blast,

We need to do exactly what you wanted. Could you kindly advise what is the code that got yours working?

Thank you in advance.
 
Hello

I would like to create 3 subdomain that point to the same directory.

Like :

www.domain.com : /x/x/x/domains.com/public_html/
us.domain.com : /x/x/x/domains.com/public_html/
es.domain.com : /x/x/x/domains.com/public_html/

I think its a alias? Im not shure :)

Thx for any help.
Sky
 
sky said:
Hello

I would like to create 3 subdomain that point to the same directory.

Like :

www.domain.com : /x/x/x/domains.com/public_html/
us.domain.com : /x/x/x/domains.com/public_html/
es.domain.com : /x/x/x/domains.com/public_html/

I think its a alias? Im not shure :)

Thx for any help.
Sky

First you need to setup the DNS so eu.domain.com and us.domain.com resolve to your IP. Do this under DNS Management in the User Level. Create A records pointing to your domains ip.

Then just use "Domain Pointers" from the User level. In the Source domain box type: us.domain.com. Make sure the box "Create as an alias" is checked. Click add. Do the same for es.domain.com


This will add us.domain.com and es.domain.com to the "ServerAlias" for the main domain. This will cause all those to be pointed to default directory of that domain.
 
Thx for the reply

I did that, but, it creates also a www record ... why?
I take the www. record out of the httpd.conf each time i crete a alias now, but, why does DA create that www ?

Good night for me :)
Sky
 
Because DA does that on purpose. Its because alot of people put www. prior to any subdomain. I do alot of call support and when I ask a user to go to "sub.domain.com" I ALWAYS here them say "Ok. im going to w-w-w.sub.dom..." and I am like, No, no WWW. So with WWW there in Alias, it will cause those users to see it. Without it, www.us.domain.com won't work. (It won't work anyway if you don't put it in your DNS). So its up to you. Simply having it in the httpd.conf and not in your DNS wont' hurt anything, because its www.us.domain.com is not resolvable.
 
Back
Top