LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2011, 03:38 AM   #1
ajayan
Member
 
Registered: Dec 2007
Posts: 89

Rep: Reputation: 16
Pointing Multiple domains to a Single Public IP


Hi,

If i have two domins www.abc.com and www.efg.com, can i point it to same IP Address in DNS?.I had already added namevirtualhost in my Apache.If possible, is there any risk,disadvantages.

Advanced Thanks,
Ajayan
 
Old 04-28-2011, 03:41 AM   #2
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
why should you do that?

i think it's possible, but i don't know why that anyone should do that?!
you can put them in the same range of IP's , but i won't put them on the same IP
 
Old 04-28-2011, 04:02 AM   #3
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
If you have the ability to upload files to www.abc.com and www.def.com, you can just throw up an empty index.htm file with a redirect in it. Unless you're wanting to do it for purposes other than web hosting, then it gets a little trickier.
 
Old 04-28-2011, 04:10 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
There is nothing special with pointing multiple domains to one IP. Many webhostings work that way.
 
Old 04-28-2011, 04:11 AM   #5
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
Quote:
Originally Posted by eSelix View Post
There is nothing special with pointing multiple domains to one IP. Many webhostings work that way.
oke, but what is the advantage of that?
 
Old 04-28-2011, 04:18 AM   #6
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
Advantage is that you can buy only one IP and serve many websites. And IPs are limited however. Disadventages is that you can get only one security certificate (HTTPS) for one IP. For every site you want be secure you must make exceptions and assign another IP address.
 
Old 04-28-2011, 04:23 AM   #7
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
Quote:
Originally Posted by eSelix View Post
Advantage is that you can buy only one IP and serve many websites. And IPs are limited however. Disadventages is that you can get only one security certificate (HTTPS) for one IP. For every site you want be secure you must make exceptions and assign another IP address.
ok, i understand that, but how do you manage that?
when 10 persons surf to www.abc.com
and 10 to www.def.com

that shouldn't be a problem (workload or something like that)

but what if 100's or 1000's of people want to access all these sites at the same moment?
so i geuss that the load speed of the website will be drastic less ?
 
Old 04-28-2011, 04:44 AM   #8
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
Are you invent second Google or something? If you expect 1000 simultaneous connections, then you need many HTTP servers on different hosts and implement load balancing which implies many IPs.

Last edited by eSelix; 04-28-2011 at 04:45 AM.
 
Old 04-28-2011, 04:54 AM   #9
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
lol no inventing Facebook 2
just joking...

but let's say someone is a real geek and surfs on IP's..
let's say www.abc.com and www.def.com are on the same IP (99.99.99.99)
and the geek surfs in stead of www.abc.com to http://99.99.99.99

then what?

I KNOW that nobody's surfs like that, but i'm just wondering what problem you're gonna get
 
Old 04-28-2011, 04:59 AM   #10
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
He will get default page configured in HTTP server, as server can't guess which virtual site should serve to such user. It can be list of sites laying on server to choose or some hosting advertisment or anything you want.

Last edited by eSelix; 04-28-2011 at 05:37 AM.
 
1 members found this post helpful.
Old 04-28-2011, 05:08 AM   #11
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
so if you configure that abc.com is your default website , the geek gets that one

check

ok thanks for clearing that one out !!
 
Old 04-28-2011, 07:46 AM   #12
omgs
Member
 
Registered: Dec 2010
Posts: 64

Rep: Reputation: 6
brownie_cookie: http://httpd.apache.org/docs/2.2/vhosts/
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Apache VirualHost multiple domains single IP zuessh Linux - Software 3 01-12-2010 10:16 AM
[SOLVED] Set up Multiple Domains in Single openwebmail mail4vijay Linux - Server 13 11-19-2009 03:44 AM
Multiple domains names - Single machine jduckett01 Linux - Networking 3 09-18-2006 06:09 AM
multiple domains on a single m/c for sendmail p_test Linux - Networking 1 04-26-2006 01:45 PM
Can I use a single Samba server for multiple domains? help321 Linux - Software 0 08-11-2004 06:20 AM


All times are GMT -5. The time now is 10:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration