Find the answer to your Linux question:
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.
  1. #1
    Linux Newbie SagaciousKJB's Avatar
    Join Date
    Aug 2007
    Location
    Yakima, WA
    Posts
    162

    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

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    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.

  3. #3
    Linux Newbie SagaciousKJB's Avatar
    Join Date
    Aug 2007
    Location
    Yakima, WA
    Posts
    162
    Quote Originally Posted by jledhead View Post
    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.
    Excellent, that's exactly what I needed.

    I had more luck following this guide for Ubuntu...
    Apache’s ProxyPass on Ubuntu Serbian Cafe

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •