View previous topic :: View next topic |
Author |
Message |
DeathCarrot Tux's lil' helper

Joined: 04 May 2006 Posts: 93 Location: Southampton, United Kingdom
|
Posted: Tue Dec 02, 2008 8:21 pm Post subject: [SOLVED] Apache multiple servers question |
|
|
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 |
|
 |
scherz0 Apprentice

Joined: 02 Oct 2008 Posts: 154
|
Posted: Tue Dec 02, 2008 9:17 pm Post subject: |
|
|
mod_proxy is what you need :
ProxyPass /server2/ http://ip_of_server2/ |
|
Back to top |
|
 |
DeathCarrot Tux's lil' helper

Joined: 04 May 2006 Posts: 93 Location: Southampton, United Kingdom
|
Posted: Tue Dec 02, 2008 10:26 pm Post subject: |
|
|
Thanks, I'll check it out.
EDIT: Works perfectly  |
|
Back to top |
|
 |
|