小编xia*_*amx的帖子

每次执行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万
查看次数

在端口 443 上同时运行 sshd 和 httpd SSL

无论如何(也许使用inetd)是否有可能使443端口同时用作sshd和httpd SSL?或许通过分析请求,如果请求是“CONNECT”,则让httpd处理连接;如果请求是 ssh 初始化,则让 sshd 处理它。

ssl ssh httpd port

7
推荐指数
2
解决办法
331
查看次数

标签 统计

httpd ×1

linux ×1

nginx ×1

port ×1

ssh ×1

ssl ×1