Page 1 of 1

Setting up nameserver + parking domain on dedicated server?

Posted: Tue Oct 28, 2008 10:52 pm
by Josh1billion
I purchased a dedicated server from http://www.superbhosting.net . Not a bad price ($59.00/month for a 2.4GHz machine), but the problem is that they basically installed an OS (Linux CentOS), Apache, and left most of the rest to me. I don't have cPanel or anything, meaning all of this work must be done by hand.. (through SSH).

Setting up nameserver...
So far, I've set up the FTP server and phpMyAdmin (took several hours) and have managed to get the website working-- when you type in the IP address into your browser, that is. My task now is to get my domain to resolve to the dedicated server IP address(es; they gave me two).

I was told by superbhosting.net support that I need to set up nameserver software on my dedicated server. How do I do this?

I have entered ns1.seedsoftime.net and ns2.seedsoftime.net into the domain manager at Godaddy for my seedsoftime.net domain, and I have registered the nameservers in Godaddy with a guide I googled for.

Parking domain...
After the name server is set up, do I also have to "park" the domain somehow? I have one main domain (seedsoftime.net) I need to get working ASAP, and I also have a couple of extra domains for other sites I'd like to host (joshforde.com and ultimatetowerdefense.com).

Re: Setting up nameserver + parking domain on dedicated server?

Posted: Wed Oct 29, 2008 11:11 am
by Josh1billion
Working toward a solution (links provided for people in similar situations):

I downloaded and installed BIND 9 last night, and I have now downloaded and installed Webmin, a web-based server configuration application. I have used Webmin according to several guides to create the nameserver.. I hope this works.

Re: Setting up nameserver + parking domain on dedicated server?

Posted: Wed Oct 29, 2008 3:12 pm
by Josh1billion
The nameserver stuff worked! Woooooot.

Also, on a related subject, does anyone know how I can get a domain (joshforde.com) to point to a subdirectory on my server? Specifically, I want visitors of JoshForde.com to see the pages contained within SeedsOfTime.net/joshforde/ . Currently, both SeedsOfTime.net and JoshForde.com point to the regular http://www.SeedsOfTime.net pages (which are contained in what is basically a public_html folder).

Re: Setting up nameserver + parking domain on dedicated server?

Posted: Wed Oct 29, 2008 6:34 pm
by VladSun
Edit Apache vhosts.conf

Re: Setting up nameserver + parking domain on dedicated server?

Posted: Wed Oct 29, 2008 8:05 pm
by Josh1billion
Thanks. But where do I find that file? And does it already exist by default or must I create it?

Re: Setting up nameserver + parking domain on dedicated server?

Posted: Thu Oct 30, 2008 2:50 pm
by Josh1billion
I found it, and all is working perfectly.

I had to create it myself as /etc/httpd/conf/vhost/Vhosts.conf, then I had to add this to the end of my Apache httpd.conf file to "include" it..:
Include /etc/httpd/conf/vhosts/Vhosts.conf
(seeing as how there was no previous vhost data in the httpd.conf file)

In Vhosts.conf, I had to enter something like this:

Code: Select all

NameVirtualHost *:80
 
#### LocalHost aka Domain 1 ####
<VirtualHost *:80>
   ServerName http://www.seedsoftime.net
   ServerPath /seedsoftime.net
   DocumentRoot /var/www/html/
</VirtualHost>
 
#### Domain 2 ####
<VirtualHost *:80>
        ServerName http://www.ultimatetowerdefense.com
        DocumentRoot /var/www/ultimatetowerdefense/
</VirtualHost>
 
 
#### Domain 3 ####
<VirtualHost *:80>
        ServerName http://www.joshforde.com
        DocumentRoot /var/www/joshforde/
</VirtualHost>
After all that, I restarted Apache with the following command:
apachectl -k restart

Hope this helps someone in a similar situation.