0
this is the error tipsnginxのリバースプロキシ
混在したコンテンツを、CSSのjsファイルをロードしません:「https://lb.domain.com/」でのページには、HTTPS経由でロードされますが、安全でないスタイルシート「http://lb.domain.com/media/css/843a626f40872c37930850e56f8a3215.css」を要求しました。このリクエストはブロックされました。 HTTPS経由でコンテンツを配信する必要があります。 私のnginxの設定ファイルは次のとおりです。
server {
listen 443 ssl;
server_name lb.domain.com;
ssl_certificate /var/www/ssl/domain.com.crt;
ssl_certificate_key /var/www/ssl/domain.com.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location/{
include /etc/nginx/mime.types;
proxy_pass http://domain;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
と、私はこの質問を解決could't多くの方法を使用します。
誰でもお手伝いできますか?
ありがとうございました!
コードを再確認する必要があります。https:// resourcesではなくhttp://を要求してください。私が理解しているように、あなたのnginx設定はHTTPSサーバを宣言し、HTTPサーバにリクエストを受け渡します。したがって、コードがHTTPリソースを要求すると、nginxはHTTPSに変更されません。 –