[NBLUG/talk] apache virtual hosts - mod_proxy

mark at oswizards.com mark at oswizards.com
Fri Apr 25 16:42:02 PDT 2008


Yes, I want to map a specific virtual host or /dir to a specific backend
server.

/mydir -> 192.168.100.240/otherdir
/yourdir -> 192.168.100.140/whodir
etc...

> On Fri, Apr 25, 2008 at 03:40:04PM -0700, mark at oswizards.com wrote:
>> I have a question about apache virtual hosts and mod_proxy.  I am trying
>> to setup a website that queries multiple internal/private hosts, like
>> aa.bb.org, ab.bb.org, ac.bb.org, etc.
>>
>> Does anyone know of any good resources for setting up apache virtual
>> hosts
>> that are setup to query internal hosts using mod_proxy.
>
> I'm a little unclear what you mean...

> Do you want requests to map in some calculable way to the backend servers?
> ie, www/q/* always goes to aa/z and www/drupal always goes to
> ac/monkeys/drupal?  This could be done pure mod_rewrite and mod_proxy,
> basically...  A RewriteMap and a .txt file or local DB file, maybe...
> http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritemap




More information about the talk mailing list