NGINX 不会停止监听 80 端口

时间:2021-05-16 15:39:44

标签: http nginx https rhel7

我想让nginx停止监听80端口,只监听https端口

所以我像这样更改了配置文件:

enter image description here

enter image description here

但它仍在监听 http 端口 结果是:

enter image description here

1 个答案:

答案 0 :(得分:0)

我想出了问题,我想分享给谁有这个问题。

在配置文件中有一行

包含 /etc/nginx/conf.d/*.conf

这一行导致始终监听端口 80,我已将其注释掉。问题已解决。

相关问题