我正在使用 nginx/0.7.68,在 CentOS 上运行,配置如下:
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;
}
# where *** is my variables
Run Code Online (Sandbox Code Playgroud)
这proxy_pass是针对 IP 频繁更改的 DNS 记录。Nginx 缓存过时的 IP 地址,导致请求错误的 IP 地址。
当 IP 地址过期时,如何阻止 nginx 缓存它?