nginx反向代理不适用于Https

问题描述

我正在尝试实现这种情况:

1-发送 HTTPS 请求到nginx http:// localhost:80 Http 上的localhost)

2- nginx代理请求并使用http://www.example.com

发送响应

HTTPS网站请求>> Nginx代理>> HTTP响应。

我的配置似乎仅适用于HTTP网站,我无法管理HTTPS。

server {
        listen  80;
        resolver  8.8.8.8;

        location / {
           proxy_pass http://$http_host;
           proxy_set_header Host $http_host;
        }
 }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)