[squid-users] Using Squid as a cache for Apache -- and that's it

From: Phoenix Kiula <phoenix.kiula@dont-contact.us>
Date: Mon, 17 Sep 2007 23:20:30 +0800

Hi,

I have googled like crazy for some simple instructions to setup Squid
as a cache for Apache. I do NOT want any filtering or authentication.
Just a transparent cache.

I am on CentOS 5. For firewall, I use the usual APF and BFD with
iptables, and I do not want to use Squid for any filtering.

I have installed squid with the usual "yum install squid". Now how do
I configure it so that Apache (on port 80) will internally check if a
file is cached on Squid (on whatever port) and if the file is found,
then serve that instead of an Apache connection.

Am I understanding Squid right? Also, will it cache dynamic content as
well -- I mean, for instance, the generated output of a PHP program,
at least the ones without url parameters? We have a number of pages on
the site that have no file extension at all (e.g., *.php) because the
default handler is set up as php, so we could have
http://ourdomain.com/index -- and Apache serves this up as a php page
as it is meant to. Will Squid recognize this?

Thanks for any tips or pointers. I went to the wiki but sadly it talks
in very jargon-ish language, and does not answer the simple question
"How to install Squid as a cache for Apache".

PK
Received on Mon Sep 17 2007 - 09:20:34 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:02 MDT