Good afternoon,

On 17/10/02 at 2:46 PM, Lyle Brooks <[EMAIL PROTECTED]> wrote:

>To do what you are trying to do, I believe you'll need to use some RewriteCond
>directives, something like (read: I'm just doing this from memory, you'll
>need to test)...
>
>RewriteCond %{HTTP_HOST} ^b
>RewriteRule ^/(.*)         http://b.blah.com:4374/$1  [P,L]
>

I don't think the RewriteCond is needed. I just use something like the following
to proxy all files ending in .cgi:

RewriteRule ^/(.*).cgi(.*)$    http://%{HTTP_HOST}:8001/$1.cgi$2 [P]

I also have lots of domain names that need to get passed to the back-end server.
My setup gets even more fun when taking into account the internal NAT addresses
that are needed for proxying but local dns serves public external addresses. I
had a fun weekend learning about views and acl's in bind to get around that
problem. (And then patching output from oDNS to support it.)


Charlie
-- 
   Charlie Garrison    [EMAIL PROTECTED]
   PO Box 141, Windsor, NSW 2756, Australia 

Reply via email to