From: Florian Philipp <lists@binarywings.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Caching Proxy alternative to Squid?
Date: Tue, 31 May 2011 20:33:15 +0200 [thread overview]
Message-ID: <4DE5346B.5040709@binarywings.net> (raw)
In-Reply-To: <BANLkTinqzwpCGV_zi-0sJ3CL29fWKJkS8Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1862 bytes --]
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2011-05-31 18:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-31 17:36 [gentoo-user] Caching Proxy alternative to Squid? Pandu Poluan
2011-05-31 18:33 ` Florian Philipp [this message]
2011-06-01 1:31 ` Adam Carter
2011-06-01 14:21 ` Florian Philipp
2011-06-01 20:31 ` Pandu Poluan
2011-06-01 21:03 ` Florian Philipp
2011-06-02 7:01 ` Joost Roeleveld
2011-06-03 6:48 ` Pandu Poluan
2011-06-03 7:50 ` Pandu Poluan
2011-06-03 8:59 ` Pandu Poluan
2011-06-04 0:54 ` Stroller
2011-06-04 8:45 ` Florian Philipp
2011-06-04 21:03 ` Stroller
2011-06-05 9:19 ` Florian Philipp
2011-06-03 7:57 ` kashani
2011-06-03 8:05 ` Pandu Poluan
2011-06-03 9:30 ` Peter Humphrey
2011-06-03 9:57 ` Joost Roeleveld
-- strict thread matches above, loose matches on Subject: below --
2011-06-04 14:44 Pandu Poluan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DE5346B.5040709@binarywings.net \
--to=lists@binarywings.net \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox