-
This request has been blocked; the content must be served over HTTPS
2020-12-14 20:14user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; upstream backend { server localhost:8080; # Solo 监听端口 } server { listen 443; server_name www.fangcong.ink,fangcong.ink; ssl on; ssl_certificate cert/1_fangcong.ink_bundle.crt; ssl_certificate_key cert/2_fangcong.ink.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; location / { proxy_pass http://backend$request_uri; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; client_max_body_size 10m; } } server { listen 80; listen [::]:80; server_name www.fangcong.ink,fangcong.ink; rewrite ^(.*)$ https://$host$1 permanent; } }
这是我的配置 没有出现这种问题