ubuntu - 我的 HTTPS (SSL/TLS) nginx 配置给了我超时

标签 ubuntu nginx ssl https certbot

我正在尝试为我的域 https://www.clarinaceramics.com/ 配置 HTTPS 协议(protocol)
为此,我使用了 certbot 并为我的 server_names 生成了一个证书。问题是我得到了 ERR_CONNECTION_TIMED_OUT每次我尝试通过 https 访问我的网站时都会出错。我认为这是防火墙配置错误,但我看不到在哪里。
这是我的 nginx 配置:

server {
  server_name 51.210.109.195 clarinaceramics.com www.clarinaceramics.com;
  root /var/www/com.clarinaceramics/clarinaceramics/client/build;
  index index.html index.htm;

  location / {
     try_files $uri /index.html =404;
   }

   listen 443 ssl; # managed by Certbot

   ssl_certificate /etc/letsencrypt/live/clarinaceramics.com-0001/fullchain.pem; # managed by Certbot
   ssl_certificate_key /etc/letsencrypt/live/clarinaceramics.com-0001/privkey.pem; # managed by Certbot
   include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
   ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
这是我的 wfc 配置:
To                         Action      From
--                         ------      ----
9813                       ALLOW IN    Anywhere                  
80                         ALLOW IN    Anywhere                  
443                        ALLOW IN    Anywhere                  
80/tcp                     ALLOW IN    Anywhere                  
443/tcp                    ALLOW IN    Anywhere                  
22/tcp                     ALLOW IN    Anywhere                  
22                         ALLOW IN    Anywhere                  
9813 (v6)                  ALLOW IN    Anywhere (v6)             
80 (v6)                    ALLOW IN    Anywhere (v6)             
443 (v6)                   ALLOW IN    Anywhere (v6)             
80/tcp (v6)                ALLOW IN    Anywhere (v6)             
443/tcp (v6)               ALLOW IN    Anywhere (v6)             
22/tcp (v6)                ALLOW IN    Anywhere (v6)             
22 (v6)                    ALLOW IN    Anywhere (v6) 
你有什么线索吗?我在这个问题上已经过了 2 周,但无法解决它,我不是一个 devOps,我准确地说;)
非常感谢 !

最佳答案

最后,经过一番研究,我测试了我的 443 端口,它没有打开。然而,我的 ufw 被配置为授权 SSL 请求。
经过挖掘,我发现OVH在客户空间提供了一个防火墙,它阻止了443请求。

关于ubuntu - 我的 HTTPS (SSL/TLS) nginx 配置给了我超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64996430/

相关文章:

reactjs - Web 应用程序 - 如果位于子路径中,则不应用 manifest.json

laravel - 为什么 laravel ubuntu 服务器占用这么多硬盘空间

amazon-web-services - 一个 EC2 实例上的多个 SSL 证书

security - 实时游戏中的安全通信

ubuntu - 如何修复 apt-get : command not found on AWS EC2?

ubuntu - 用于 AWS EC-2 的 Spark AMI

NGINX:在突发中设置延迟时间

ubuntu - Kubernetes for i386 - 找不到二进制文件,无法编译(编译错误)

python - 安装库时 Docker Image 构建失败 : Failed to establish a new connection: [Errno -5] No address associated with hostname

google-app-engine - Google App Engine + Cloudflare 上的通配符 SSL 证书