小编pro*_*sti的帖子

在没有证书的情况下设置 Nginx https(在端口 443 上)?

我试图尽可能多地跟进此线程,但我总是收到此消息:

This site can’t be reached

example.com unexpectedly closed the connection.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_CLOSED
ReloadHIDE DETAILS
Run Code Online (Sandbox Code Playgroud)

在铬。

我所拥有的配置部分是这样的:

server {   

   listen  80;
   listen 443 default_server ssl;
   #ssl on;

    server_name example.com   www.example.com;
Run Code Online (Sandbox Code Playgroud)

这是我在本地 127.0.0.1 计算机上的测试网站 example.com。

certificate nginx https ssl-certificate

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

certificate ×1

https ×1

nginx ×1

ssl-certificate ×1