nginx proxypass鱿鱼

我想在nginx后面运行squid服务器。 我的示例configuration:

location ~* ^/get/(.*) { proxy_pass http://ip:3128; proxy_set_header Host evenstatichostnamefortest.com; proxy_set_header Request-URI http://evenstatichostnamefortest.com/samplefile.zip; proxy_redirect off; } 

输出:

 http://server.com/get/www.google.com 

鱿鱼错误:

尝试检索URL时遇到以下错误:/ get / www.google.com

无效的url

所有我想要的是基于文件夹传递请求(例如mysite / get / videourl到youtube / videourl和mysite / dl /文件名到我的下载服务),但我想知道为什么我甚至不能覆盖Request-URI和主机静态值

任何帮助,将不胜感激