Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Sep 22, 2011 12:22 pm 
Offline
Senior Member

Joined: Fri May 20, 2011 2:45 am
Posts: 63
Location: Spain
Hello,

I would like to point a folder to another server with apache, can that be done?

For example: site.com/folder should point to another server, should that be done with ProxyPass?

Thank you.


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 5:15 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
... sure, you COULD proxy, but it will trombone all the traffic through your server. It will also mean the destination server will need some magic configuration in order to trust X-Forwarded-For and/or X-Real-IP from your server.

Redirects are usually the better choice.

(Note: I'm assuming by "another server" you mean a completely other server, like if I wanted http://hoopycat.com/reddit/ to actually be http://www.reddit.com/r/hoopycat/ or something. If you mean "another server" like "I've got a couple applications on this server and a couple on another server and I want to make it all work like it's one big happy server", then yes, proxy is the right tool.)

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 5:17 pm 
Offline
Senior Member

Joined: Fri May 20, 2011 2:45 am
Posts: 63
Location: Spain
Sorry but I did not get your note...


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 5:23 pm 
Offline
Senior Member

Joined: Fri May 20, 2011 2:45 am
Posts: 63
Location: Spain
And redirects with apache you mean?


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 6:06 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
He means, instead of getting the data for the client yourself, it makes more sense to send the client to the other server to get it themselves.


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 6:10 pm 
Offline
Senior Member

Joined: Fri May 20, 2011 2:45 am
Posts: 63
Location: Spain
And how to do it?


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 10:02 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Been awhile since I've used Apache, but it would involve mod_redirect (RewriteRule).


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


Who is online

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