Image

Imagedmoz wrote in Imagelinux

apache behind coyote router

Here's my setup:

A Coyote Linux machine, called 'router', which is conneccted to my DSL modem and my local network in a normal fashion. Behind this reside two Debian Linux machines each running Apache, called 'inhope' (which is running Apache 1.3.26 under Debian 2.2), and 'nerdcave' (which is running the newest Apache, under Debian 3.0). Both of these computers and their respected webservers work fine from my local network.

Currently, I have my Coyote machine forward port 80 to 'inhope', and it seems to work with no qualms whatsoever and is entirely 'net accessible. I have a dyndns account set up, which seems to work fine. However, I'd like my other Debian machine's webserver to also be 'net accessible, only using a different dyndns account. The problem is that if I try forwarding my other dyndns account to my IP, I'll always get my _other_ Debian computer, since that's where Coyote forwards port 80.

What I wanted to try was something using either VirtualHosts or ProxyPass rules on my first Debian machine, so it'd just see whether or not the request is for the other machine, via the hostname in the HTTP header, and if it is, forward it. However, I'm not entirely sure how this should really be done, and although I've tried quite a few things, I haven't had any luck with it. The second dyndns account still seems to forward to my first Debian computer, which isn't what I want it to be doing.

Does anyone have any ideas as to what the easiest way to accomplish this would be?