V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
felixzzz
V2EX  ›  问与答

nginx springboot 代理 https 问题

  •  
  •   felixzzz · Dec 26, 2020 · 866 views
    This topic created in 1959 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   ·   2990 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:16 · PVG 23:16 · LAX 08:16 · JFK 11:16
    ♥ Do have faith in what you're doing.