Thanks Jeff. I found references to the ProxyPass and ProxyPassReverse shortly after posting my message. But seeing a block like that helps nail it home. I'll be trying this out tonight (testing first) and probably moving the server tomorrow.
Shawn -----Original Message----- From: Jeffrey Clement [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 2:09 PM To: [EMAIL PROTECTED] Subject: Re: (clug-talk) Can Apache handle a virutal host with redirection? Mod proxy should do what you want and it's easy to use. On your server: <VirtualHost *:80> ServerName theirdomain.com ServerAlias www.theirdomain.com ProxyPass / http://internalmachine:80/ ProxyPassReverse / http://internalmachine:80/ </VirtualHost> Hope this helps. On Thu, Oct 23, 2003 at 02:10:01PM -0600, Shawn Grover wrote: > I have an interesting situation I'm hoping to fix with my existing network > configuration. A contact of mine has a webserver that needs to be up, but > they are expecting to change ISPs in the next few days. This webserver will > end up suffering some downtime while DNS get's updated. They are going to > temporarily use one of the free DNS services (www.zoneEdit.com), and > duplicate their DNS entries there, then modify their DNS registration to > point to Zone Edit. > > They're doing this because there is a good chance that there will be a > period of time where they're Internet connections will be down. Basically > ending service on one ISP, then waiting for the other ISP to get all hooked > up again. Hopefully only a few days. > > K, that's the background. Here's the problem. They want me to basically > co-locate one of their servers during this time period that they will be > down. Me personally, not my work site. I am set up on Telus home DSL > services, and DO have the second dynamic IP available to me. However, > instead of using that (and exposing the server without any firewall > protection), I'd like to put it behind my firewall. My firewall is already > forwarding port 80 to my web server (www.open2space.com). So this won't be > do able. I was wondering if I could setup a virtual host in Apache (I have > a couple now for named hosting - www.open2space.com, babes.open2space.com, > etc.), but these point to folders on the Apache server itself. > > Is it possible to setup Apache with a virtual host that passes the request > to another complete server? I'd like my existing Apache to basically > redirect to this other server, then handle the responses. Maybe a Proxy > setup? > > If this isn't something that can be easily done, then I'll have to use the > second Dynamic IP address, but leave the server without any real protection. > (I know that this isn't really proper use of the Telus services, but I'm > only expecting 3 days, to help them through the rough spots. Of course, > I'll be compensated in some way... <grins>) > > Thanks for any tips, and my appologies if I rambled on too much.... > > Shawn >
