• 请不要在回答技术问题时复制粘贴 AI 生成的内容
frostfall
V2EX  ›  程序员

诡异的问题, nginx 配 ssl 证书后 443 端口打不开网站,却不报错

  •  
  •   frostfall · Mar 12, 2017 · 11163 views
    This topic created in 3531 days ago, the information mentioned may be changed or developed.

    真是日了狗了,之前 nginx 也不是没有配过 ssl 证书,这次说什么也不行, nginx 却不报错

    使用 acme.sh 签发的 let's encrypted 证书, dns 验证方式

    server {
    	listen       443 ssl;
    	server_name  mydomain;
    	
    	ssl_certificate 	/etc/nginx/ssl/fullchain.cer;
    	ssl_certificate_key	/etc/nginx/ssl/mydomain.key;
    

    ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+ECDSA+AES128:EECDH+aRSA+AES128:RSA+AES128:EECDH+ECDSA+AES256:EECDH+aRSA+AES256:RSA+AES256:EECDH+ECDSA+3DES:EECDH+aRSA+3DES:RSA+3DES:!MD5;

    	ssl_prefer_server_ciphers   on;
    
    	root           /wordpress;
    	index index.html;
    }
    

    这样的配置文件有什么错吗?

    一整晚也没发现问题,请教各位了

    13 replies  •  2019-01-08 15:12:22 +08:00
    trepwq
    trepwq
    Mar 12, 2017 via iPhone❤️1
    1
    access 和 error log 打开看看呢
    frostfall
    frostfall
    OP
    Mar 12, 2017
    2
    error log 已经调成 info 级别,没有任何错误输出
    Zohar
    Zohar
    Mar 12, 2017 via Android❤️1
    3
    首先,你没配置 PHP 部分和 WordPress 伪静态部分
    其次,把 index index.html;改成 index index.php;
    wwhc
    wwhc
    Mar 12, 2017❤️1
    4
    浏览器有什么提示?
    frostfall
    frostfall
    OP
    Mar 12, 2017
    5
    @Zohar index.html 是我用来测试的单网页,为了去掉 php 方面因素
    frostfall
    frostfall
    OP
    Mar 12, 2017
    6
    @wwhc
    无法访问此网站

    响应时间过长。

    请试试以下办法:
    检查网络连接
    检查代理服务器和防火墙
    运行 Windows 网络诊断
    检查网络连接。
    请检查电缆情况,然后重启路由器、调制解调器或您正在使用的其他网络设备。
    linbiaye
    linbiaye
    Mar 12, 2017❤️1
    7
    错误信息都没给,怎么搞?猜测是防火墙问题。
    wwhc
    wwhc
    Mar 12, 2017
    8
    在服务器检查 443 端口有无打开, access 有无浏览器连接纪录(按你的描述,应该没有)
    palytoxin
    palytoxin
    Mar 12, 2017 via iPhone❤️1
    9
    telnet 443 看看端口呗
    lslqtz
    lslqtz
    Mar 12, 2017❤️1
    10
    @frostfall 防火墙
    frostfall
    frostfall
    OP
    Mar 12, 2017
    11
    @trepwq
    @Zohar
    @wwhc
    @linbiaye
    实在抱歉各位,我脑子秀逗了没开防火墙,耽误大家的时间实在对不起,给大家道个歉
    Crossin
    Crossin
    Mar 12, 2017
    12
    @frostfall 从外面看了标题就想到这可能,因为之前也踩过这个坑,调试了半天,发现云上的端口没开,服务器上啥提示也没有。
    点进来发现还真是的
    liufangpu
    liufangpu
    Jan 8, 2019
    13
    配置好后不能直接./nginx -s reload,先./nginx -s stop,然后再./nginx -s start,
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4245 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 07:15 · PVG 15:15 · LAX 23:15 · JFK 02:15
    ♥ Do have faith in what you're doing.