My Oracle Support Banner

How To Refresh Mod_proxy Hostname Ipaddress Resolution (Doc ID 2398587.1)

Last updated on SEPTEMBER 08, 2023

Applies to:

Oracle HTTP Server - Version 11.1.1.2.0 and later
Information in this document applies to any platform.

Goal

Enable mod_proxy to refresh hostname/ipaddress DNS resolution.

When mod_proxy (ProxyPass/ProxyPassReverse) is configured with hostname, DNS resolution happens when the socket to the origin domain is created for the first time.  When connection reuse is enabled (default), each backend domain is resolved only once per child process, and cached for all further connections until the child is recycled.   This caused connection issue if hostname/ipaddress resolution is dynamically changed.  OHS will continue to forward requested to the old and possibly staled ipaddress, thus resulting in proxy connection errors.

Sample mod_proxy configuration:

  ProxyPass /test  http://<HOSTNAME.DOMAIN>/test1
  ProxyPassReverse /test  http://<HOSTNAME.DOMAIN>/test1



 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.