Running multiple sites on one Linode?
At the moment, I have 1 site on the Linode 768 package. I don't even use half of the space for my server and I would like to run at least 2 more sites.
But to my understanding I can only link one domain to my server IP. I'm pretty sure there's a way to link another domain to the server. Any help?
8 Replies
@theflame12:
I'm fairly new to running a linux server. I understand most of the basics and I could understand a simple tutorial, but what I need help with is running multiple sites on my server.
At the moment, I have 1 site on the Linode 768 package. I don't even use half of the space for my server and I would like to run at least 2 more sites.
But to my understanding I can only link one domain to my server IP. I'm pretty sure there's a way to link another domain to the server. Any help?
By sites, do you mean websites?
If so, what you want is Virtual Hosts.
If by "sites" you mean run more than one OS at a time, then no. You can only have one running OS per linode at a time.
Not sure where you heard you can only "link" one domain per IP, but that hasn't been true for ages. This is why VirtualHosts were invented. (If you want SSL on multiple domains and can't use SNI because you have IE6/XP users, you'll need another public V4 IP)
Is there a link to a tutorial on setting up virtual hosts?
The Linode Library's LAMP and LEMP guides cover virtual hosts. For Apache on Ubuntu 10.04 LTS:
For nginx on Ubuntu 10.04 LTS:
There are guides for other distributions; I mention Ubuntu because it's by far the most common at Linode, and 10.04 because it's the most recent LTS (Long Term Support) release. But the library has instructions for others.
@theflame12:
Is there a link to a tutorial on setting up virtual hosts?
Perhaps you've heard of this wild newfangled invention called "Teh Google"?
Google "
@vonskippy:
@theflame12:Is there a link to a tutorial on setting up virtual hosts?
Perhaps you've heard of this wild newfangled invention called "Teh Google"?Google "
name based virtual host" should get you some useful info.
Heh, yeah didn't really want to start on some tutorial when I wasn't sure on if it was the right one. Figured a little human interaction/help would be best.
@Guspaz:
@theflame12:The basic idea is that you point multiple domains to the same IP. When the browser asks for a page, it sends a "Host" header that tells the server what domain the browser is requesting. The web server can then return different websites depending on what domain was requested.
The Linode Library's LAMP and LEMP guides cover virtual hosts. For Apache on Ubuntu 10.04 LTS:
http://library.linode.com/lamp-guides/u … 0.04-lucid">http://library.linode.com/lamp-guides/ubuntu-10.04-lucid For nginx on Ubuntu 10.04 LTS:
http://library.linode.com/lemp-guides/u … 0.04-lucid">http://library.linode.com/lemp-guides/ubuntu-10.04-lucid
I'll try this tutorial now.
A friend of mine said they got this message
Couldn't connect to clubpenguincheatsy.com:80: Connection refused
~~![](<URL url=)
Your friend may have an old DNS entry cached - wait a while, then try again later.~~
@Vance:
The site you mention comes up for me OK as follows:
~~![](<URL url=)
http://img197.imageshack.us/img197/6825 … shot8n.png">http://img197.imageshack.us/img197/6825/screenshot8n.png " /> Your friend may have an old DNS entry cached - wait a while, then try again later.
Yeah, I eventually just changed it back and gave up..~~