[wplug] Port Redirecting

Edward Walter ewalter at walterama.com
Sat Feb 16 15:47:03 EST 2008


You can play games with having end users go to server1 and have server1 
grab the content from server2 for them.  This is commonly done using 
some combination of Apache's mod_proxy and ProxyPass.  This will let you 
hide the IP address, hostname and port number of server2.  The problem 
with this is that the content is still coming from server1 (with the 
slower connection speed).  There's a good article on this here:

http://confluence.atlassian.com/display/DOC/Using+Apache+with+virtual+hosts+and+mod_proxy

I would look at moving server2's content over to server1 and use Apache 
virtual hosts to separate the content.  If that's not an option, you 
could look into using a reverse proxy on server1 to cache the content 
from server2.  This article has a good overview of how this works and 
links to more detailed information.

http://linuxgazette.net/132/pfeiffer.html

Happy reading!

-Ed

Eric wrote:
> Hopefully someone knows of a way to accomplish what I want to do. 
> I have 2 servers at two different locations:  Server 2 is running 
> apache on port 81, and Server 1 is running apache on port 80.  Both 
> are running Gentoo Linux. 
> The internet connection at Server 2 is much faster than the one at 
> Server 1.  I'm trying to find the best way to allow the end user to 
> access the websites on Server 2 at the higher speeds. 
> Right now, I have a single html file for each domain on Server 1, 
> which is just a frames page with the main frame being the domain from 
> server 2. 
> This works, but there are a few things I don't like about this way:
>  
>  First of all, if the user tries to bookmark a certain page of the 
> site, it just bookmarks the main domain.
>  Second, the title always stays the same, and doesn't change to 
> reflect the current page. 
>  
> I could just redirect it to Server 2 with port 81, but i would rather 
> not have a port number shown in the address bar, along with the 
> different domain name that it uses.
>  
> If anyone knows of another way I can set this up, please let me know
>  
> Thanks,
> Eric
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>   



More information about the wplug mailing list