Nginx 不响应 80 端口

Nginx does not response to port 80

我刚从 Debian 迁移到 Arch 服务器,但 运行 遇到了一些问题。我是 运行 个 nginx 上的 Web 应用程序,配置如下:

虚拟主机:https://gist.github.com/anonymous/46dec ... cbdd439ccd nginx.conf: https://gist.github.com/anonymous/54f6d ... b0ccbbe3f7

如果我现在尝试在浏览器(或 CURL)中输入 http://2wickl.de,我只会得到奇怪的二进制数据 (%)。 只有当我直接输入 https://2wickl.de I'll get back the correct output (in this case https://www.2wickl.de). Even when I'm trying something like http://aasdflaksdflalsfdj.2wickl.de it does not work. If I try https://aasdflaksdflalsfdj.2wickl.de 时,它才能正常工作。我认为,nginx 并没有真正有机会在端口 80 上重定向或传送默认站点。任何人都可以给我一些提示,让我看看或做错什么吗?

netstat -a -p -n|grep LISTEN 提供: https://gist.github.com/anonymous/54d2d … 0111f1135d

信息:防火墙是运行,但没有配置规则。

非常感谢您的帮助。 问候 爱

经过进一步调查,我发现了问题所在:

我的一个服务器配置为 http 端口 80 启用了 http2

server {
    listen 80 http2;
    listen [::]:80 http2;
}

改成后

server {
    listen 80;
    listen [::]:80;
}

一切正常。停用所有服务器设置并逐个打开每个服务器始终是一个很好的建议。