httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <>
Subject Re: [users@httpd] Problem with DNS lookup caching in reverse proxy
Date Fri, 26 Nov 2010 13:00:12 GMT

----- "Slawomir R. Janotta" <> wrote:

> Hi everybody,
> I am facing a problem which I cannot solve in a satisfying way and
> after
> searching the known resources for a while I wonder if anyone has ever
> solved a similiar one.
> Let me first describe the situation I have here.
> I am using a reverse proxy installation to access a backend server
> transparently. However, there are in fact two backend machines instead
> of
> one and they are configured in a cold stand-by way meaning only one
> is
> ever running.
> Additionally there is a special dns-resolver which supplies the ip
> address
> of only one of the backend machines depending on which one is running
> at
> the moment during DNS name resolving. This works perfectly as I can
> check
> each time after the switch-over with a simple nslookup command.
> The definition of the reverse proxy clause is like this:
> NameVirtualHost
> <VirtualHost>
>     SSLEngine ON
>     SSLProxyEngine ON
>     ProxyPass /
>     ProxyPassReverse /
> </VirtualHost>
> Where is the address of the reverse proxy machine and
> the
> fully qualified name of is the logical name of
> the
> service which the dns-resolver resolves to either one of the backend
> servers depending on their run status.
> When I access the backend service over the reverse proxy the Apache
> server
> running as the reverse proxy caches the IP address of the then
> running
> backend server. Now if I switch the servers, shutting one down and
> bringing the other up and updating the dns-resolver, I can see that
> the
> dns-resolving mechanism works but the reverse proxy still uses the
> cached
> IP address of the now defunct backend server.

Would it be a viable option for you to not use the DNS method, and
instead do something like:

<Proxy balancer://notsohotcluster>
  BalanceMember status=+H

ProxyPass / balancer://notsohotcluster
ProxyPassReverse / balancer://notsohotcluster

This will (probably) simply mitigate the DNS problem.
> Regards
> Slawo


Igor Galić

Tel: +43 (0) 664 886 22 883

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message