我正在尝试为我的域配置HTTPS协议https://www.clarinaceramics.com/
为了做到这一点,我使用了certbot并为我的server_name生成了一个证书。问题是,每次尝试通过https访问我的网站时,我都会收到一个ERR_CONNECTION_TIMED_OUT
错误。我认为这是一个防火墙配置错误,但我不知道在哪里。
这是我的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)
你有线索吗?我已经在这个问题上度过了两个星期,但都没能解决它,我不是一个开发人员;(
非常感谢!
最后,经过一番研究,我测试了我的443端口,它没有打开。然而,我的ufw被配置为授权SSL请求。
经过挖掘,我发现OVH在客户空间中提供了一个防火墙,可以阻止443个请求。