How To Refresh Mod_proxy Hostname Ipaddress Resolution
Last updated on MAY 15, 2018
Applies to:Oracle HTTP Server - Version 18.104.22.168.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://server1.oracle.com/test1
ProxyPassReverse /test http://server1.oracle.com/test1
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms