I have nginx/0.7.68 running on my centos box with the following configuration
server
{
listen 80;
server_name ***;
index index.html index.htm index.php default.html default.htm default.php;
location / {
root /***;
proxy_pass http://***:8888;
index index.html index.htm;
}
[...]
The server that my nginx proxy_pass to is a server with dynamic dns, whose ip change frequently. The problem is that nginx seems to cache the ip address of the destination of proxy_pass resulting request to the wrong ip address.
How can I solve this problem?