Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-17-2006, 11:36 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 7

Rep: Reputation: 0
Multiple domains names - Single machine

I lease a single dedicated machine from my ISP. I recently requested two additional IP addresses from my ISP. I received an email stating that they have done their part in this task and I have the two new IP numbers. However, I do not know the steps required to complete my objective of hosting three domain names with a single machine. My ISP has assigned the new IP's and I have updated DNS with network solutions.

Can someone please point me to a tutorial that would help or at least give me an idea of the requirements to configure this machine.


Old 09-18-2006, 05:47 AM   #2
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You don't state what webserver software you are running but in the case of Apache on a Linux server this is achieved via name based virtual hosting and doesn't need multiple IP addresses as this works off a single IP address.
I will supply some links later but will explain how this works first. Firstly you need registered domain names. The registrar will manage the DNS part for you in most cases and thereafter you merely need to tell or use the registrar's control panel to point the domain names to an IP address. In your public web space, normally /var/www you must create the necessary pages with index page for each domain name. eg. /var/www/, /var/www/ and /var/www/ Now in the Apache configuration file you set up VirtualServers so that each one sends requests received on port 80 to the relevant file on the server eg;

<VirtualHost *:80>
DocumentRoot /var/www/
ErrorLog logs/error_log
TransferLog logs/access_log

So requests for domain sent over the Internet are directed by the DNS, managed by the registrar, to your IP address, the Apache server receives this and sends the request to the document root at /var/www/
Do some more searching using the term name based virtual hosting and have a look at this and this for further info and read the Apache Virtual server docs mentioned in the articles.

Last edited by TigerOC; 09-18-2006 at 05:48 AM.
Old 09-18-2006, 06:06 AM   #3
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Rep: Reputation: 30
yes that is correct. Look in apache doc in topic virtual host.
Old 09-18-2006, 06:09 AM   #4
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Apache will also do IP based virtual hosting. Have a look at the apache documentation if this is the server you are running


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple domains on a single m/c for sendmail p_test Linux - Networking 1 04-26-2006 01:45 PM
Multiple RADIUS servers on a single machine skiros Linux - Software 3 11-02-2005 07:48 AM
Samba with multiple connections from single XP machine jqcaducifer Linux - Networking 11 11-17-2004 03:53 PM
Can I use a single Samba server for multiple domains? help321 Linux - Software 0 08-11-2004 06:20 AM
One Machine, Multiple NICs, and a single Newbie CozyMel Linux - Networking 2 10-09-2002 01:53 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration