Wil*_*iam 1 certificate nginx node.js cloudflare digital-ocean
我收到 400 错误请求错误。有时有效,有时无效。在电话上,它似乎更有效。我不确定这笔交易是什么,但这很令人恼火。
server {
listen 80;
listen [::]:80;
server_name url url;
return 301 https://$host$request_uri;
}
server {
# SSL configuration
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name url url;
ssl on;
ssl_certificate /etc/ssl/certs/cert.pem;
ssl_certificate_key /etc/ssl/private/key.pem;
ssl_client_certificate /etc/ssl/certs/cloudflare.crt;
ssl_verify_client on;
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Run Code Online (Sandbox Code Playgroud)
我在使用 CloudFlare 的服务器中的一个新网站中也经历过这种情况。问题是,SSL/TLS > Origin Server > Authenticated Origin Pulls在与我的其他网站共享服务器的新网站中,默认情况下没有激活该网站,而这些网站已经激活了经过身份验证的原始拉取。所以我只需为新网站激活它即可。在其他人的情况下,可以检查是否需要停用它。
| 归档时间: |
|
| 查看次数: |
2721 次 |
| 最近记录: |