From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QRTmP-0007vR-Jz for garchives@archives.gentoo.org; Tue, 31 May 2011 18:35:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02D581C009; Tue, 31 May 2011 18:33:28 +0000 (UTC) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by pigeon.gentoo.org (Postfix) with ESMTP id C50CC1C009 for ; Tue, 31 May 2011 18:33:28 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.messagingengine.com (Postfix) with ESMTP id 7F8A320858 for ; Tue, 31 May 2011 14:33:28 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.161]) by compute4.internal (MEProxy); Tue, 31 May 2011 14:33:28 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:subject:references:in-reply-to:content-type; s=smtpout; bh=qghBQFk16MM7nrfO773VsJtG30o=; b=OG0PsaQaRWbBZVcm2amj63c3uueFnFSdYdwGhGkZ+EG1Ii+asluZj6LTfpMVXTuQWyL72KmtavMhsHPon968NhpwpIxjZVQ5edenOKVZTx0HebSECdfCIajaFT1/o/N3IRLLMV1WLtTw1BhAz4TsY7e8/+uHn5XAPSEOthJmYmo= X-Sasl-enc: bUmNuxWPrF52AT203E/TmbD+BegdJK4DOf9C4MzqqioP 1306866806 Received: from [192.168.5.18] (serv.binarywings.net [83.169.5.6]) by mail.messagingengine.com (Postfix) with ESMTPSA id DDAB1445E6A for ; Tue, 31 May 2011 14:33:25 -0400 (EDT) Message-ID: <4DE5346B.5040709@binarywings.net> Date: Tue, 31 May 2011 20:33:15 +0200 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110507 Lightning/1.0b3pre Thunderbird/3.1.10 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Caching Proxy alternative to Squid? References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig02378E3165ECFA33222D2D5A" X-Archives-Salt: X-Archives-Hash: 00aa0f4b3d03f1b9174948a5b6e265bf This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig02378E3165ECFA33222D2D5A Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 31.05.2011 19:36, schrieb Pandu Poluan: > Hello! >=20 > 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. >=20 > Now I'm not sure whose 'fault' it is, but just in case it's Squid's, > I'll experiment with other web proxies. >=20 > 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 ) >=20 > So, what can I do? >=20 > Rgds, >=20 >=20 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). ProxyRequests On # Allow access from the local net only Order deny,allow Deny from all Allow from 192.168. Allow from 127. # 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) 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 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 --------------enig02378E3165ECFA33222D2D5A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3lNG8ACgkQqs4uOUlOuU8x7QCfcXhRKbBtutG5cnCHTBqRnp81 5A8An3Wnyii9vl0EmLr7TtwIwa6ExBmc =6l6w -----END PGP SIGNATURE----- --------------enig02378E3165ECFA33222D2D5A--