因此,我试图在我的网站上安装https,托管在oracle云vm上,运行ubuntu。没有https的网站运行得很好,但我更希望它能与https一起工作。我的域名: rayyanshikoh.ga (通过freenom进行学习和测试)
我的配置文件:
server {
listen 80;
server_name 129.151.159.179 rayyanshikoh.ga www.rayyanshikoh.ga;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/ubuntu/personal-website/personal-website;
}
location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/rayyanshikoh.ga/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/rayyanshikoh.ga/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
}但是,每当我试图使用chrome上的https打开我的网站时,我就会得到错误:
This site can’t be reachedwww.rayyanshikoh.ga took too long to respond.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_TIMED_OUT发布于 2022-02-21 08:52:40
问题可能是安全列表未配置为允许通信量超过443端口。
请检查附加到VM的安全列表,并添加允许0.0.0.0: 443 ingress通信的规则。
请按照本指南介绍如何配置安全列表。
https://tutorialforlinux.com/2020/03/22/oracle-oci-compute-ubuntu-18-04-instance-open-port-443/2/
免责声明:我目前为OCI工作,我的想法是我自己的,不代表甲骨文或OCI任何方式。
https://stackoverflow.com/questions/71127772
复制相似问题