I have a question about setting up a proxy for a mod_perl server.  I've
got a simple proxy set up that listens on port 80 and proxies to the
mod_perl server running on a different port.  

For example. http://blah.blah.com/anything/ will go to
http://blah.blah.com:4374/anything/  and the rules to do that are below.

RewriteEngine     on
RewriteLogLevel   0
RewriteRule       ^/(.*)$  http://blah.blah.com:4374/$1   [P,L]
NoCache           *
ProxyPassReverse  /  http://blah.blah.com/

This is fine when you are proxying a single machine name, but how would
i set up a proxy that would send http://a.blah.com ->
http://a.blah.com:4374,  http://b.blah.com -> http://b.blah.com:4374,
etc etc etc.  There are about 40 different names that need to be
proxied, and it's important that the destination name is the same as the
source machine name.

It seems like something like 
RewriteRule     ^http://([^.]+).blah.com/(.*)$   http://$1.blah.com:4374/$2
[P,L] 

should work, but it doesn't.

-- 
Brian Hirt <[EMAIL PROTECTED]>

Reply via email to