Linode Forum Index Linode Forum
Linode Community Forums
 


2 seperate websites on 1 linode?

Click here to go to the original topic

 
       Linode Forum Index -> General Discussion
Author Message
Mottster



Joined: 09 Aug 2009
Posts: 4

Posted: Sun Aug 09, 2009 12:31 pm    Post subject: 2 seperate websites on 1 linode?  

Here's my setup..

I have a Linode 360, it currently has 2 configurations setup each is associated with a disk image. I'm running Ubuntu 8.04 LTS for both disk images..

(#1) Wordpress Site - Using Nginx has IP 72.14.190.50
(#2) Magento Site - Using Apache2 has IP 72.14.190.114

I have setup each site (disk image) with the static IP. But when I reboot site #1 it's IP starts responding and site #2 will stop responding. If I reboot site #2, it will starting responding and site #1 will stop.

Why would that be? Do I need to go with a second linode?

Thanks..
Back to top  
Mottster



Joined: 09 Aug 2009
Posts: 4

Posted: Sun Aug 09, 2009 12:37 pm    Post subject:  

I think I may have answered my own question..

Only can have 1 configuration running at a time..
Back to top  
Alucard



Joined: 13 Feb 2008
Posts: 116

Posted: Sun Aug 09, 2009 12:39 pm    Post subject:  

You can have as many web sites on your linode as you can fit. You're currently doing it wrong, however. I assume you're using Apache (which I don't use), so try Googling for "apache virtualhost" or something.
Back to top  
Mottster



Joined: 09 Aug 2009
Posts: 4

Posted: Sun Aug 09, 2009 12:43 pm    Post subject:  

I've got 2 sites that are using Apache on one disk image.. and then the other is running Nginx to host up the wordpress site.. Can you run apache and nginx together?
Back to top  
hoopycat



Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York

Posted: Sun Aug 09, 2009 12:48 pm    Post subject:  

There's a couple ways to whip this llama:

1) Attach two IPs to the Linode, and run Apache bound to one IP and nginx bound to the other.

2) Use one IP address, have one of the web servers listen on port 80, and have it proxy requests for the other one.

3) Use one web server (and one IP) for both sites.

4) Buy a second Linode! :-)

My personal implementation is a combination of #3 and #4... my busy web site runs on its own Linode, with lighttpd+Python wsgi+memcached+postgresql, and everything else runs on a "shared" Linode with lighttpd and a fastcgi handler for each application.
Back to top  
marcus0263



Joined: 21 Jul 2008
Posts: 171
Location: Seattle

Posted: Mon Aug 10, 2009 6:32 pm    Post subject:  

IMO just use the KISS method, I'm running a 1/2 dozen websites on my linode (3 are parked and 3 are live) with the same IP with Apache. Don't make it too complicated ya know ;)
Back to top  
10drill



Joined: 01 Mar 2009
Posts: 13

Posted: Thu Aug 13, 2009 5:13 am    Post subject:  

I'm hosting 24 not-so-busy websites on my Linode 720 using Apache.
Back to top  
 
       Linode Forum Index -> General Discussion
Page 1 of 1