我想在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
- Confluence代理错误原因:从远程服务器读取错误
- Nginx反向代理为404提供静态内容请求
- Apache2反向代理连接保持持久性,填充ssh通道
- 设置Nginx – 将请求redirect到auth服务器,并redirect到服务请求
- Nginx反向代理与iRedMail Apache2
无效的url
所有我想要的是基于文件夹传递请求(例如mysite / get / videourl到youtube / videourl和mysite / dl /文件名到我的下载服务),但我想知道为什么我甚至不能覆盖Request-URI和主机静态值
任何帮助,将不胜感激