【发布时间】:2022-02-21 16:52:40
【问题描述】:
所以我试图在我的网站上设置 https,托管在 oracle 云虚拟机上,运行 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
【问题讨论】:
标签: nginx https virtual-machine oracle-cloud-infrastructure