Linode Forum Index Linode Forum
Linode Community Forums
 


Running multiple sites on one Linode?

Click here to go to the original topic

 
       Linode Forum Index -> General Discussion
Author Message
theflame12



Joined: 31 Jul 2011
Posts: 49
Location: GA

Posted: Fri Nov 18, 2011 4:20 pm    Post subject: Running multiple sites on one Linode?  

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?
Back to top  
kyhwana



Joined: 12 Sep 2011
Posts: 30
Location: New Zealand

Posted: Fri Nov 18, 2011 4:30 pm    Post subject: Re: Running multiple sites on one Linode?  

theflame12 wrote: 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)
Back to top  
theflame12



Joined: 31 Jul 2011
Posts: 49
Location: GA

Posted: Fri Nov 18, 2011 4:33 pm    Post subject:  

Yes, I mean websites. I'm not really that educated on anything of this matter so I probably wouldn't have the slightest clue haha.

Is there a link to a tutorial on setting up virtual hosts?
Back to top  
Guspaz



Joined: 26 May 2009
Posts: 1150
Location: Montreal, QC

Posted: Fri Nov 18, 2011 5:04 pm    Post subject:  

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/ubuntu-10.04-lucid

For nginx on Ubuntu 10.04 LTS:

http://library.linode.com/lemp-guides/ubuntu-10.04-lucid

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.
Back to top  
vonskippy



Joined: 27 Dec 2009
Posts: 469
Location: Colorado, USA

Posted: Fri Nov 18, 2011 5:09 pm    Post subject:  

theflame12 wrote: 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 "<distro> name based virtual host" should get you some useful info.
Back to top  
theflame12



Joined: 31 Jul 2011
Posts: 49
Location: GA

Posted: Fri Nov 18, 2011 5:12 pm    Post subject:  

vonskippy wrote: theflame12 wrote: 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 "<distro> 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.

[quote="Guspaz"] theflame12 wrote:
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/ubuntu-10.04-lucid

For nginx on Ubuntu 10.04 LTS:

http://library.linode.com/lemp-guides/ubuntu-10.04-lucid

I'll try this tutorial now.
Back to top  
theflame12



Joined: 31 Jul 2011
Posts: 49
Location: GA

Posted: Fri Nov 18, 2011 5:26 pm    Post subject:  

I had the first site set up and it was working, but after updating my server with the apt-get upgrade command, the page doesn't load

http://www.clubpenguincheatsy.com

A friend of mine said they got this message
Couldn't connect to clubpenguincheatsy.com:80: Connection refused
Back to top  
Vance



Joined: 18 Jan 2009
Posts: 354

Posted: Fri Nov 18, 2011 11:20 pm    Post subject:  

The site you mention comes up for me OK as follows:


Your friend may have an old DNS entry cached - wait a while, then try again later.
Back to top  
theflame12



Joined: 31 Jul 2011
Posts: 49
Location: GA

Posted: Sat Nov 19, 2011 4:20 am    Post subject:  

Vance wrote: The site you mention comes up for me OK as follows:


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..
Back to top  
 
       Linode Forum Index -> General Discussion
Page 1 of 1