关于Nginx配置SSL https转http,服务端获取的请求是http的解决方法

    xiaoxiao2022-07-04  163

    Nginx代理中配置:

    proxy_redirect http:// https://; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;

    配置Tomcat server.xml 的 Engine 模块下配置一个 Value: Valve className=“org.apache.catalina.valves.RemoteIpValve” remoteIpHeader=“X-Forwarded-For” protocolHeader=“X-Forwarded-Proto” protocolHeaderHttpsValue=“https”/

    最新回复(0)