Thanks. I'll pick your brains off list on this..... The mod_rewrite is working for now, so I don't have any pressing need to do this.... more of an interest / education type thing for me....
Thanks. -----Original Message----- From: Jeffrey Clement [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 3:16 PM To: [EMAIL PROTECTED] Subject: Re: (clug-talk) Can Apache handle a virutal host with redirection ? I use this with zope all the time and works fine. I use the SiteRoot object and works like a charm an, line you say. Way easier to use than moxrewrite. On Thu, Oct 23, 2003 at 02:55:59PM -0600, Shawn Grover wrote: > Hmmmm, I wonder if that work better than the mod_rewrite I'm using to > connect to Zope... > > I currently have this: > > <VirtualHost *> > ServerName www.open2space.com > RewriteEngine On > RewriteRule ^/(.*) > http://127.0.0.1:8080/VirtualHostBase/http/www.open2space.com:80/www.open2sp > ace.com/VirtualHostRoot/$1 [L,P] > </VirtualHost> > > So if I'm understanding things right I should be able to do this: > > <VirtualHost *:80> > ServerName open2space.com > ServerAlias www.open2space.com > ProxyPass / http://127.0.0.1:8080/www.open2space.com > ProxyPassReverse / http://127.0.0.1:8080/www.open2space.com > </VirtualHost> > > And this should pass any request to www.open2space.com to my Zope server > which is running on port 8080 (and the open2space stuff is in the > "www.open2space.com" folder under Zope. Is this correct? If so, that IS > much easier to understand than the stuff I have now... > > Hmmm... but now that I think of it, I don't think this will work. The > rewrite rule passes in information to Zope so that it can mangle the URLs in > source to use the correct server name (via Zope's Virtual Host Monster), > such as the src property of an image tag.... k, so I guess I have to stick > with the rewrite method... > > Shawn > > -----Original Message----- > From: Jeffrey Clement [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 23, 2003 2:31 PM > To: [EMAIL PROTECTED] > Subject: Re: (clug-talk) Can Apache handle a virutal host with > redirection ? > > > I use it all the time and it works pretty much as expected. Very handy > for stuff like CherryPY and way easier than mod_rewrite (which would do > it too). > > On Thu, Oct 23, 2003 at 02:33:11PM -0600, Shawn Grover wrote: > > 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 > > > > > >
