Results 1 to 3 of 3
Is there some way that I can use apache/iptables to serve both of my servers through the same basic domain? I'm not talking about VirtualHosts either, I don't believe ( ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-19-2009 #1
Two physical apache hosts served by one machine
Is there some way that I can use apache/iptables to serve both of my servers through the same basic domain? I'm not talking about VirtualHosts either, I don't believe ( despite the fact that's all I can find anything to read about on Google when searching
for this ).
Anyway, the problem is that I have a TorrentFlux php torrent-client that I run so I can add stuff to the download when I'm not around. I don't want to put this on my regular webpage server because there's just not enough diskspace in that machine. On the other hand, I don't want to replace that server all-together because the other machine is my desktop and would not make a reliable host.
So my idea was that there could be some way to have the apache2 server on my dedicated server redirect a subdirectory in its webroot to the webroot of my desktop's TorrentFlux server, but over standard HTTP ports so that it is more like the server is serving up the content of my desktop server through its HTTP service, instead of simply redirecting.
The reason I want to do this is because so far I have to use the TorrentFlux server on a nonstandard port so my dedicated server can still host its own things on port 80, but I've been running into several situations where the browsers I want to use do not support the nonstandard port such as with some instances of IE or the browser on my BlackBerry.
Anyway, I'm not looking for a step by step or anything ( though it couldn't hurt ) but I just need some ideas on what I could search for to get some better ideas. There's probably some term for what I want to do I'm not even aware of that would help me greatly.
Anyway, just some specifics...
Runnining Ubuntu 7.04 and apache 2.2.4 along with shorewall 4.0 as my routing/firewall software.
Last edited by SagaciousKJB; 10-19-2009 at 02:47 PM. Reason: Specifying thread title
- 10-19-2009 #2
so just to be sure, you have 2 physical machines, one with the torrent app and the other is the public facing web server?
if thats correct you could use reverseproxy on the web server machine to reverse proxy the requests back to the torrent machine.
its pretty easy to setup and here are some good links
apache reverse proxy - Google Search
the first result looks to explain pretty good.
- 10-19-2009 #3