How To Refresh Mod_proxy Hostname Ipaddress Resolution
(Doc ID 2398587.1)
Last updated on AUGUST 20, 2020
Applies to:Oracle HTTP Server - Version 22.214.171.124.0 and later
Information in this document applies to any platform.
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
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