怎么把自己做的网站发布,横岗网站建设多少钱,电子商务网站建设实例,免费公司取名问题描述#xff1a;请求到的图片地址单独访问能显示#xff0c;但是在网页中展示不出来 原因#xff1a;https中直接访问http是不行的#xff0c;需要用nginx再转发一下 nginx配置如下#xff08;注意#xff1a;9000是minio默认端口#xff0c;已经占用#xff0c;…问题描述请求到的图片地址单独访问能显示但是在网页中展示不出来 原因https中直接访问http是不行的需要用nginx再转发一下 nginx配置如下注意9000是minio默认端口已经占用所以这里监听9001 server {listen 9001 ssl;server_name 172.19.129.9;ssl_certificate localhost.pem;ssl_certificate_key localhost-key.pem;location /defect/ {proxy_pass http://172.19.129.9:9000/defect/;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}}Redis中存minio上传成功的url也是要替换http为https的端口9000也要替换为9001 String imgUrl FileUploadUtils.uploadMinio(img);imgUrl imgUrl.replace(localhost,172.19.129.9);imgUrl imgUrl.replace(http,https);imgUrl imgUrl.replace(9000,9001);