RE
V2EX  ›  问与答

请问如何用 nginx 转发任意 url

  •  
  •   RE · Mar 15, 2017 · 4609 views
    This topic created in 3528 days ago, the information mentioned may be changed or developed.
    在美国有台小鸡,希望实现下面这个效果:

    访问: http://vps/?url=http://target/image.jpg

    然后目标图片则从 VPS 上下载之后并显示出来(不要跳转的,因为有些 url 是被 Q 的)

    请问 nginx 能实现吗?
    3 replies  •  2017-03-15 23:51:05 +08:00
    RobertYang
    RobertYang
    Mar 15, 2017 via Android❤️1
    1
    nginx 万能反代
    GoBeyond
    GoBeyond
    Mar 15, 2017 via Android❤️1
    2
    关键词: nginx 反向代理
    yangqi
    yangqi
    Mar 15, 2017❤️1
    3
    location /some/path/ {
    proxy_pass http://www.example.com/link/;
    }
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4135 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 09:34 · PVG 17:34 · LAX 01:34 · JFK 04:34
    ♥ Do have faith in what you're doing.