Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jul 17, 2012 7:07 am 
Offline
Senior Member

Joined: Fri Aug 20, 2010 3:12 am
Posts: 68
Hi

let's say I have two linodes. What I want is that

server.com/linode1 will be served by ngix of linode1 and
server.com/lonode2 will be served by ngix of linode2

is that possible? Is that possible without any redirection?

Thank you

R.


Top
   
PostPosted: Tue Jul 17, 2012 8:28 am 
Offline
Senior Member
User avatar

Joined: Tue Jan 04, 2005 7:32 am
Posts: 277
Website: http://www.betadome.com/
Location: Ă…lesund, Norway
Skype: neonnero
Twitter: neonnero
Not completely without redirection, no.

One way to solve it would be to have one of the linodes serve the request for the whole domain name itself, but it will then need to direct requests to one of the directories to the other linode, either by redirection to another hostname (pointing to the IP address of the other server), or by serving as a proxy between the client and the other linode for that particular directory. However, the latter setup can be difficult to achieve without intimate knowledge of nginx configuration.


Top
   
PostPosted: Tue Jul 17, 2012 6:40 pm 
Offline
Senior Member

Joined: Fri Aug 20, 2010 3:12 am
Posts: 68
NeonNero wrote:
Not completely without redirection, no.


I thought it would be the case.

But I can have this without redirection, right?

linode1.server.com and linode2.server.com

R.


Top
   
PostPosted: Wed Jul 18, 2012 3:26 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Yes, you would point linode1.server.com at one IP address, and linode2.server.com at another.


Top
   
PostPosted: Wed Jul 18, 2012 6:04 am 
Offline
Senior Member

Joined: Fri Aug 20, 2010 3:12 am
Posts: 68
Vance wrote:
Yes, you would point linode1.server.com at one IP address, and linode2.server.com at another.


good. Thank you guys for your help. R.


Top
   
PostPosted: Wed Jul 18, 2012 8:08 pm 
Offline
Junior Member

Joined: Thu Feb 05, 2009 12:48 pm
Posts: 24
With a haproxy frontend you can do this. You can also serve php from a different server than static content (or a pool of server backends).


Top
   
PostPosted: Wed Jul 18, 2012 10:42 pm 
Offline
Senior Member

Joined: Fri Aug 20, 2010 3:12 am
Posts: 68
bd3521 wrote:
With a haproxy frontend you can do this. You can also serve php from a different server than static content (or a pool of server backends).


I wanted to know if there is any possible way to achieve this without a "middle" man.... So I use subdomains instead. R


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


Who is online

Users browsing this forum: No registered users and 4 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