[SOLVED] Running multiple websites from one machine - and DNS.
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.