LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-14-2011, 11:38 AM   #1
qwertyomen
LQ Newbie
 
Registered: Dec 2011
Distribution: ubuntu
Posts: 7

Rep: Reputation: Disabled
Running multiple websites from one machine - and DNS.


I am trying to run a couple websites from my server, and have no clue how to set up bind to do that. I'm still kinda clueless on apache too. I know how to use the terminal and get around but I'm new to web administration. My release is ubuntu 10.04
 
Old 12-14-2011, 12:28 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

To setup multiple web sites on a single apache instance )vhosts), you can follow the instructions here
Regarding dns, you have to create the zone files for your sites with the A records pointing to the IP of your apache webserver.
Have a look at this howto about configuring bind in Ubuntu.
 
1 members found this post helpful.
Old 12-14-2011, 12:32 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
bind has nothing to do with hosting websites. There is a significant demarcation between the two, so be clear on what is and is not relevant. For DNS side you only need to have either a bunch of separate A records or having a selection of CNAME's pointing to a common A recording.
 
Old 01-03-2012, 05:23 AM   #4
qwertyomen
LQ Newbie
 
Registered: Dec 2011
Distribution: ubuntu
Posts: 7

Original Poster
Rep: Reputation: Disabled
Ok Thanks for you replies, and sorry for taking so long to get back... school... :P

I think I understand the zones for apache now. So if I'm right that allows for multiple lower level domains (www, blog, etc). what I'm looking for is to support multiple domains on one server, so speedypetey.com, bamshared.com, etc.
So does this mean the domains are managed by bind and the lower domains by apache? How do I get www.speedypetey.com and www.bamshared.com working on the same server.

Thanks,
Mike
 
Old 01-03-2012, 06:50 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
How do I get www.speedypetey.com and www.bamshared.com working on the same server.
1. From the dns side, you need to give to these subdomains the same A record in their zone files. This A record should point to your box running apache.
E.g in speedypetey.com zone file, there should be:
Code:
www.speedypetey.com IN A 1.2.3.4
And in bamshared.com zone file, in the same way:
Code:
www.bamshared.com IN A 1.2.3.4
2. In apache you should define 2 named-based vhosts (www.speedypetey.com, www.bamshared.com). Read this to see how it's done.
 
1 members found this post helpful.
Old 01-10-2012, 01:12 PM   #6
qwertyomen
LQ Newbie
 
Registered: Dec 2011
Distribution: ubuntu
Posts: 7

Original Poster
Rep: Reputation: Disabled
I have a bit of work to get done now Just a matter of keeping everything straight and crossing my t's and dotting my i's
 
  


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
Can I have 1 record in DNS/DHCP for 1 machine running 2 OS? Aramsh Linux - Networking 2 03-01-2011 08:06 AM
Apache - running multiple websites on one host xtra Linux - General 5 06-30-2010 04:51 AM
Running Multiple VNC viewer in same machine mathimca05 Linux - Newbie 3 12-28-2007 10:32 PM
Running multiple SSL websites on one server tictocdoc Linux - Networking 1 07-07-2004 03:26 PM
Running Multiple X-Servers on the same Machine Chryzmo Linux - Newbie 1 08-31-2003 02:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:35 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