adding a domain name to the server

Posted on 2008-11-11
Last Modified: 2012-05-05
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..
Question by:XK8ER
    LVL 6

    Expert Comment

    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.
    LVL 1

    Author Comment

    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
    LVL 6

    Expert Comment

    With no control panel, do you have access to the config files? I'm assuming you're using apache.
    LVL 1

    Author Comment

    with root access you have access to every single file in the server!
    LVL 6

    Assisted Solution

    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.
    LVL 7

    Accepted Solution

    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

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now