Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache doesn't update IP address for URL even DNS has update |
|
Author |
|
kendarkfire
Joined: 23 Aug 2016 Posts: 2 Location: US
|
Posted: Tue 23 Aug '16 23:00 Post subject: Apache doesn't update IP address for URL even DNS has update |
|
|
we have an AWS Internal LB domain, and in Apache, we set up apache mod_proxy to that domain, it works fine when Apache just started, but the IP of that LB domain will be changed later, then Apache didn't update the IP and it always failed to connect to that LB. then if we restart the Apache, it will work again;
I think Apache mod_proxy only parse domain through DNS when starting up, after Apache started, even the IP address of the domain has been changed and the DNS server has updated it, but Apache didn't update it;
is there any solution for this issue?
ProxyPass / http://xxx.internal-xxxamazon.com/
ProxyPassReverse / http://xxx.internal-xxxamazon.com/ |
|
Back to top |
|
kendarkfire
Joined: 23 Aug 2016 Posts: 2 Location: US
|
Posted: Wed 24 Aug '16 1:59 Post subject: Found Solution |
|
|
By reading the detail document on https://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypass;
I found the solution by adding the following parameter for proxypass:
ProxyPass / http://spd2.noosh.com/ disablereuse=on
the description of that parameter is:
This parameter should be used when you want to force mod_proxy to immediately close a connection to the backend after being used, and thus, disable its persistent connection and pool for that backend. This helps in various situations where a firewall between Apache httpd and the backend server (regardless of protocol) tends to silently drop connections or when backends themselves may be under round- robin DNS. To disable connection pooling reuse, set this property value to On. |
|
Back to top |
|
|
|
|
|
|