RE
V2EX  ›  问与答

请问如何用 nginx 转发任意 url

  •  
  •   RE · Mar 15, 2017 · 4306 views
    This topic created in 3370 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
        1
    RobertYang  
       Mar 15, 2017 via Android   ❤️ 1
    nginx 万能反代
    GoBeyond
        2
    GoBeyond  
       Mar 15, 2017 via Android   ❤️ 1
    关键词: nginx 反向代理
    yangqi
        3
    yangqi  
       Mar 15, 2017   ❤️ 1
    location /some/path/ {
    proxy_pass http://www.example.com/link/;
    }
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2902 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 67ms · UTC 12:35 · PVG 20:35 · LAX 05:35 · JFK 08:35
    ♥ Do have faith in what you're doing.