On Dec 2, 2004, at 12:50 PM, Patrick Atoon wrote:
I'm running Squid 2.5 (as http_accellerator),
Apache 2.0.52 and
Mediawiki 1.3.8. My original setup (/wiki/index.php/...) used to
work brilliantly, but I have rearranged stuff so it runs nicely
without the "/wiki" or "/index.php/" bit. Works like a charm on
first sight.
On closer inspection, everyones client IP-address is "127.0.0.1",
which matches the Apache access_log.
Make sure you've enabled squid mode in MediaWiki... this will tell it
to use the forwarded address (in the X-Forwarded-For header) instead of
the direct remote address (which is going to be the squid), and to make
anonymous page views cacheable by the squid so you actually get some
benefit out of it.
$wgUseSquid = true;
$wgSquidServers = array('127.0.0.1');
Localhost needs to have the privilege to issue PURGE requests to the
squid in order to clear cached pages when they update. (You might or
might not also have to fiddle with $wgInternalServer, which controls
the base URL on the PURGE requests; it should match whatever the squid
thinks it's saving, iirc.)
-- brion vibber (brion @
pobox.com)