相关疑难解决方法(0)

每次执行proxy_pass时如何强制nginx解析DNS(动态主机名)?

我正在使用 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 缓存它?

linux nginx

81
推荐指数
4
解决办法
13万
查看次数

标签 统计

linux ×1

nginx ×1