This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
apache:forward_proxy [2016/05/21 16:24] – cbredi | apache:forward_proxy [2016/05/24 07:29] – cbredi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[**Apache 2.4 forward proxy** | + | **Apache |
- | Creates a forward proxy (squid drop in replacement) on port 3128. | + | Creates a forward proxy ([[http:// |
- | Proved to be faster than squid 3.5 on the same hardware. | + | Proved to be faster than squid 3.5 on the same hardware |
- | Make sure you have a local DNS caching resolver, such as [[https:// | + | Make sure you have a local DNS caching resolver, such as [[https:// |
+ | |||
+ | ProxyDomain directive protects the proxy from accessing domain hosts by filling up the local domain name or search domains from / | ||
+ | |||
+ | Apache httpd [[https:// | ||
+ | |||
+ | Required modules: [[https:// | ||
< | < | ||
Line 22: | Line 28: | ||
Require ip 172.16.0.0/ | Require ip 172.16.0.0/ | ||
</ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | No caching is performed in this setup but it can be implemented using httpd [[https:// | ||
+ | |||
+ | To enable disk caching: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ... | ||
+ | < | ||
+ | CacheRoot "/ | ||
+ | CacheEnable disk http:// | ||
+ | CacheEnable disk ftp:// | ||
+ | </ | ||
+ | ... | ||
</ | </ | ||
</ | </ |