Am 31.05.2011 19:36, schrieb Pandu Poluan: > Hello! > > I've been having problems with my Squid-equipped Gentoo box: For some > sites, Squid just times out. But if I access the sites directly, they > appear in my browser. And doing a direct wget from the Squidbox also > works. > > Now I'm not sure whose 'fault' it is, but just in case it's Squid's, > I'll experiment with other web proxies. > > Unfortunately, the selection in portage seems very limited. Oops, > Polipo, and 3proxy seem to have gone dormant, and Apache Traffic > Server is still Bug#335637 ( http://bugs.gentoo.org/335637 ) > > So, what can I do? > > Rgds, > >
Well, apache itself with mod_proxy works reasonably well but it doesn't support https and ftp, as far as I remember. Make sure to change the default config. I'll attach my config (/etc/apache2/modules.d/50_mod_proxy.conf). <IfModule mod_proxy.c> ProxyRequests On # Allow access from the local net only <Proxy *> Order deny,allow Deny from all Allow from 192.168. Allow from 127. </Proxy> # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; # "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block ProxyVia On # Enable the cache as well # (no caching without CacheRoot) <IfModule mod_cache.c> <IfModule mod_disk_cache.c> CacheRoot "/var/cache/apache2/proxy" CacheEnable disk / # Using many CacheDirLevels makes cache cleanup very slow CacheDirLevels 1 # Using long names can lead to too many files per directory for FS CacheDirLength 2 </IfModule> </IfModule> </IfModule> There is no size limit for apache's cache. For this, you have to execute htcacheclean as a cron job. Hope this helps, Florian Philipp
signature.asc
Description: OpenPGP digital signature