LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-03-2013, 01:14 AM   #1
ashl3y_
LQ Newbie
 
Registered: May 2013
Posts: 5

Rep: Reputation: Disabled
Hosting multiple domains with different IP addresses


Hello, I've recently bought a linux dedicated server. I am looking for some guide or maybe some help on how to host multiple domains on the same linux box (I know you can do this with VirtualHosts on Apache) but with different IP addresses. I purchased three extra IP addresses from my host in hopes to have a setup sort of like this:
mydomain.com = 7.7.7.7
otherdomain.com = 9.9.9.9
but all hosted on the same box.

I havent much experience with linux networking so this is sort of new to me.

Alos, how is this all done on the box? Is it with /etc/hosts? It might sound foolish but I haven't got a clue. I tried searching around and I didn't get anywhere. Any help is appreciated, thanks.

Also, I'll be using CloudFlare as my DNS server and as a proxy.. If this matters.

Last edited by ashl3y_; 05-03-2013 at 01:16 AM.
 
Old 05-03-2013, 02:42 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
IP based vhosts is fine; just read the Apache docs eg https://httpd.apache.org/docs/2.2/vhosts/ip-based.html
 
  


Reply



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
[SOLVED] Sendmail - Masquerading multiple domains with different addresses Rohit_4739 Linux - Server 6 07-11-2012 01:23 PM
Email server hosting multiple Domains bence8810 Linux - Server 7 02-11-2007 02:53 PM
Apache: hosting multiple domains fturcic Linux - Software 1 02-15-2005 05:39 PM
Hosting multiple domains Imanerd Linux - Networking 2 01-04-2005 08:10 PM
Multiple email addresses with qmail (same prefix, different domains) Shaolyen Linux - General 1 11-16-2003 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration