LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-17-2006, 10:36 PM   #1
jduckett01
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.

Thanks,

Duck
 
Old 09-18-2006, 04:47 AM   #2
TigerOC
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/abc.com, /var/www/def.com and /var/www/ghi.com. 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>
ServerName abc.com
ServerAlias www.abc.com
ServerAdmin user_name@abc.com
DocumentRoot /var/www/abc.com
ErrorLog logs/error_log
TransferLog logs/access_log
</VirtualHost>

So requests for abc.com 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/abc.com/index.htm
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 04:48 AM.
 
Old 09-18-2006, 05:06 AM   #3
zamri
Member
 
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, 05:09 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 12:45 PM
Multiple RADIUS servers on a single machine skiros Linux - Software 3 11-02-2005 06:48 AM
Samba with multiple connections from single XP machine jqcaducifer Linux - Networking 11 11-17-2004 02:53 PM
Can I use a single Samba server for multiple domains? help321 Linux - Software 0 08-11-2004 05:20 AM
One Machine, Multiple NICs, and a single Newbie CozyMel Linux - Networking 2 10-09-2002 12:53 AM


All times are GMT -5. The time now is 04:15 PM.

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