Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Nov 18, 2011 5:20 pm 
Offline
Junior Member

Joined: Sun Jul 31, 2011 5:03 pm
Posts: 49
Website: http://www.clubpenguincheatsy.com/
AOL: thefiame12
Location: GA
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?


Top
   
PostPosted: Fri Nov 18, 2011 5:30 pm 
Offline
Senior Member

Joined: Mon Sep 12, 2011 3:29 am
Posts: 63
ICQ: 1081190
Website: http://kyhwana.org
AOL: kyhwana
Location: New Zealand
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)


Top
   
 Post subject:
PostPosted: Fri Nov 18, 2011 5:33 pm 
Offline
Junior Member

Joined: Sun Jul 31, 2011 5:03 pm
Posts: 49
Website: http://www.clubpenguincheatsy.com/
AOL: thefiame12
Location: GA
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?


Top
   
 Post subject:
PostPosted: Fri Nov 18, 2011 6:04 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
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

For nginx on Ubuntu 10.04 LTS:

http://library.linode.com/lemp-guides/u ... 0.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.


Top
   
 Post subject:
PostPosted: Fri Nov 18, 2011 6:09 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
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.


Top
   
 Post subject:
PostPosted: Fri Nov 18, 2011 6:12 pm 
Offline
Junior Member

Joined: Sun Jul 31, 2011 5:03 pm
Posts: 49
Website: http://www.clubpenguincheatsy.com/
AOL: thefiame12
Location: GA
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.

Guspaz wrote:
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/u ... 0.04-lucid

For nginx on Ubuntu 10.04 LTS:

http://library.linode.com/lemp-guides/u ... 0.04-lucid


I'll try this tutorial now.


Top
   
 Post subject:
PostPosted: Fri Nov 18, 2011 6:26 pm 
Offline
Junior Member

Joined: Sun Jul 31, 2011 5:03 pm
Posts: 49
Website: http://www.clubpenguincheatsy.com/
AOL: thefiame12
Location: GA
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


Top
   
 Post subject:
PostPosted: Sat Nov 19, 2011 12:20 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
The site you mention comes up for me OK as follows:
Image

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


Top
   
 Post subject:
PostPosted: Sat Nov 19, 2011 5:20 am 
Offline
Junior Member

Joined: Sun Jul 31, 2011 5:03 pm
Posts: 49
Website: http://www.clubpenguincheatsy.com/
AOL: thefiame12
Location: GA
Vance wrote:
The site you mention comes up for me OK as follows:
Image

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..


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group