View previous topic :: View next topic |
Author |
Message |
DeathCarrot Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
scherz0 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
DeathCarrot Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
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 ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|