Nginx代理传递变量

时间:2017-05-07 14:58:43

标签: nginx iframe cors reverse-proxy proxypass

为避免出现CORS问题,我通过原始服务器上的子域重定向iFrame的URL。但是,我需要剪切这个“假”URL的很大一部分并将其附加到真实URL。所以例如我传递的iFrame   /corsfix/challenge/editor.aspx?doc=f1030cdf但我需要nginx将其解释为http://100.32.94.18/challenge/editor.aspx?doc-f1030cdf。我怎么做到这一点?到目前为止,我有:

 location /corsfix {
            proxy_pass http://100.32.94.18/;
    }

0 个答案:

没有答案