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?
efg-uaeConnect With a Mentor Commented:
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
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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

With no control panel, do you have access to the config files? I'm assuming you're using apache.
XK8ERAuthor Commented:
with root access you have access to every single file in the server!
kdtreshConnect With a Mentor Commented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.