Pointing Domain Name to subdomain?

coldnwhite

New member
Joined
Apr 5, 2006
Messages
4
I have lots of Domain Names but only one hosting service. I don't want to buy a 99$/month dedicated to have many sites because I don'T do money with Internet, it's only for informatif websites. So here's the question:

How can I point a domain name to another folder in another domain name, ex:

Main domain : rootdomain.com
Sub domain : test.rootdomain.com
Additional Domain name : test.com

How can I point the subdomain without using redirection?

test.com ---> test.rootdomain.com

Is there tips with domain pointing? And how may I manage my dns correctly? I'm a little n00b in this case, may someone can help me?
 
After reading your question it seems to me that what you want to do is not so much point a domain to a subdomain, but you simply want to be able to instruct apache to serve webpages from a specific folder based on the (sub)domain name the user entered in the address bar. If this is indeed what you want to do I think you could accomplish this by editing the VirtualHost sections in your user's httpd.conf for the domain test.com in your example and point the DocumentRoot entry to whatever folder contains the test.com webpages.
Whether or not you have access to your useraccount's httpd.conf I don't know, you would have to check with the administrator of your server.


The only problem you're likely to run into is that the user's http.conf can be overwritten by DirectAdmin under certain circumstances. If that happens you would loose all the manual modifications you made to your http.conf. I'm not sure how you could overcome that problem, maybe someone else here can help with this?
 
Last edited:
coldnwhite said:
I did not have access to httpd.conf file :s ... is there another way?
I'm not sure but I don't think so. If you don't want to use redirection and you don't have access to your httpd.conf than I don't see how you could make this work.
 
General purpose hosting control panels, including DirectAdmin, aren't made for this sort of thing.

However, there are DNS services available that offer you the ability to redirect. And several domain registrars offer it as well.

The first step to look would be your domain registrar.

Jeff
 
Back
Top