Using mod_proxy, Apache can function either as a forward proxy or a reverse proxy. It does not function as a cache unless you specifically enable mod_cache too. Once mod_cache is enabled, it should transparently handle caching of proxied content too. The module is labeled experimental.
发布评论
评论(2)
使用 mod_proxy,Apache 可以充当正向代理或反向代理。 除非您也专门启用 mod_cache,否则它不会充当缓存。 一旦启用 mod_cache,它也应该透明地处理代理内容的缓存。 该模块被标记为实验。
有关其他详细信息,请参阅mod_cache 文档页面。
Using mod_proxy, Apache can function either as a forward proxy or a reverse proxy. It does not function as a cache unless you specifically enable mod_cache too. Once mod_cache is enabled, it should transparently handle caching of proxied content too. The module is labeled experimental.
See the mod_cache doc page for additional details.
您可以按照您的要求进行操作(例如参见 Roshan 的答案),但我还建议您查看专用的反向 HTTP 代理:清漆。
Varnish 非常高效,比 Apache 高效得多。
You can do what you ask (see for example Roshan's answer), but I would also suggest that you look at a dedicated reverse HTTP proxy: Varnish.
Varnish is very efficient, much more so than Apache.