lshero
V2EX  ›  问与答

nginx 怎么样可以做虚拟目录反向代理?

  •  
  •   lshero · Sep 12, 2014 · 4339 views
    This topic created in 4353 days ago, the information mentioned may be changed or developed.
    因为现在就一个SSL证书 假如我的网站是example.com
    怎么设置rewrite和反向代理可以让我用example.com/google这种虚拟目录
    去访问google的服务?
    3 replies    2014-09-12 21:24:01 +08:00
    chunchu
        1
    chunchu  
       Sep 12, 2014   ❤️ 1
    跟我的需求一样,我想反向代理Google Scholar一直没有搞定
    lshero
        2
    lshero  
    OP
       Sep 12, 2014
    @chunchu 我觉得除了这种虚拟目录的纯反向代理有点难搞大部分静态资源链接地址需要替换,要不然就用PHP的在线代理好了,不过那个着实消耗资源
    lshero
        3
    lshero  
    OP
       Sep 12, 2014
    @chunchu https://github.com/proxyve/webproxy
    就是这种的webproxy自己用应该问题不大
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3294 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 11:59 · PVG 19:59 · LAX 04:59 · JFK 07:59
    ♥ Do have faith in what you're doing.