adding a domain name to the server

hello there,
I would like to know how can I add a domain name into my FreeBSD v6.3 machine..
I sent an email to my hosting company and they did it within the minute, now I need to add my other 20 domains.
the server doesnt run a control panel.. and I already changed the name server I just need to start working on the 20 sitea..
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If you're talking about hosting domains on a webserver, there are two parts:

1. Point the domains to the server (DNS)
2. Handle the requests (Apache, most likely)

If you want to add domains to a hosting company you use, you'll have to work with them to put it all together. If you're controlling the server, you'll probably want to add virtual server directives to the httpd.conf file and have a separate directory for each domain.

DNS and hosting are separate, you can have the domains hosted somewhere and the site hosted elsewhere, but it's often easiest to have them in the same place.
XK8ERAuthor Commented:
i have this dedicated server all by myself.. im the only allowed root access.
I see the domain I told them to add in /home/domains
With no control panel, do you have access to the config files? I'm assuming you're using apache.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

XK8ERAuthor Commented:
with root access you have access to every single file in the server!
Again, assuming you're using Apache, here is a page about VirtualHosts:

If you create a separate directory for each site, you can create a virtual host that points to that directory based on a domain name. You can assign multiple domain names to a single directory if you want. Then, if the DNS records for those domains point to your server, Apache should serve files from the corresponding directories.
Its very simple.
Edit Your Apache Config file. and copy the old Virtual Host Lines and modify as per your need.
and modify the Domain Setting in the Hosting Account.
You can find the apache config file at /etc/httpd/conf/httpd.conf
and just give a restart to apache  server.
please write if you face some problems.
Regards, ASIF

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.