简体   繁体   English

如何在代理服务器上“安装”特定的Web文件?

[英]How do I “install” specific web files on a proxy server?

This is for a in house system, that is required to be set-up this way. 这是针对内部系统的,需要以这种方式进行设置。

I need specific web files, for example, all images to be manually pre-installed on a proxy server and never downloaded from the web server. 我需要特定的Web文件,例如,所有图像都必须手动预安装在代理服务器上,而不要从Web服务器下载。

When the browser request the page, the only thing sent from the web server to the proxy should be the plain html page. 当浏览器请求页面时,从Web服务器发送到代理的唯一内容应该是纯HTML页面。

I would then like the images the html page uses, to be grabbed from the the proxy every time, for the complete render to the browser. 然后,我希望html页面使用的图像每次都从代理中获取,以完整呈现给浏览器。

Is there a name for this set up? 此设置有名称吗? I have seen about caching but I do not even want the images downladed once. 我已经了解过有关缓存的信息,但是我什至不想让图像降级一次。 In addition, how would the html page know to use the images from the proxy? 另外,HTML页面如何知道使用代理中的图像?

How would I set up such a thing? 我将如何设置这样的东西? I do not have a proxy server set-up yet so I do not know what platform I will be using, but suggestions are appreciated. 我还没有设置代理服务器,所以我不知道我将使用什么平台,但是建议值得赞赏。

Thank You. 谢谢。

好吧,我认为您可以例如使用Privoxy并告诉它将对图像的某些查询重定向到本地服务器,甚至让它使用正则表达式替换img src="属性内联。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM