Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Apache multiple servers question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DeathCarrot
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2006
Posts: 93
Location: Southampton, United Kingdom

PostPosted: Tue Dec 02, 2008 8:21 pm    Post subject: [SOLVED] Apache multiple servers question Reply with quote

I tried to search for this, but wasn't able to think of any simple way to describe what I want, so here goes:

I have 2 servers, one has port 80 forwarded to the outside world, the other is inaccessible from the outside. Is there a way to tell apache to use another apache server when I try to access a particular location? I'd rather not use another port unless it's absolutely necessary.
e.g. If i navigate to http://server1.org/server2/ it will "use" server2 (i.e. use server2's apache instance with server2's configs and logs and everything, rather than just hosting pages located on server2 using server1's apache).

I don't have access to subdomains so it needs to be a folder that the redirection happens in.

Thanks.

EDIT: Added solved tag


Last edited by DeathCarrot on Thu Dec 04, 2008 4:18 am; edited 1 time in total
Back to top
View user's profile Send private message
scherz0
Apprentice
Apprentice


Joined: 02 Oct 2008
Posts: 154

PostPosted: Tue Dec 02, 2008 9:17 pm    Post subject: Reply with quote

mod_proxy is what you need :

ProxyPass /server2/ http://ip_of_server2/
Back to top
View user's profile Send private message
DeathCarrot
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2006
Posts: 93
Location: Southampton, United Kingdom

PostPosted: Tue Dec 02, 2008 10:26 pm    Post subject: Reply with quote

Thanks, I'll check it out.

EDIT: Works perfectly :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum