Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

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..
0
XK8ER
Asked:
XK8ER
  • 3
  • 2
2 Solutions
 
kdtreshCommented:
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.
0
 
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
0
 
kdtreshCommented:
With no control panel, do you have access to the config files? I'm assuming you're using apache.
0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

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

http://httpd.apache.org/docs/2.2/vhosts/

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.
0
 
efg-uaeCommented:
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
 
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now