felixzzz
V2EX  ›  问与答

nginx springboot 代理 https 问题

  •  
  •   felixzzz · Dec 26, 2020 · 947 views
    This topic created in 2019 days ago, the information mentioned may be changed or developed.
    问题描述
    nginx 开启强制 80 redirec443 端口,代理后端 springboot 本机 8080 端口
    问题是
    request.getRequestURL() 获取的是 http
    request.getHeader("Referer") 获取的是 https
    我拿着 referer 跟 url 比较 startsWith 就出问题了
    有遇到过这种问题的吗
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5210 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 03:50 · PVG 11:50 · LAX 20:50 · JFK 23:50
    ♥ Do have faith in what you're doing.