Dear all,
I know that this is not stictly-speaking an issue with Squid, but this is the nearest I could find on the site.
I have Apache 2.0.55 (Ubuntu), PHP 5.1.2, Mediawiki 1.9.3 and Squid 2.5.12.
Squid is acting as a reverse proxy and is listening on port 80 and Apache is listening on port 85 so that I can still bypass squid for testing on another machine on the LAN.
Meidawiki is not using Squid, or is ignoring Squid despite the relevant variables being set in LocalSettings.php:
$wgUseSquid = true;
$wgSquidServers = array('127.0.0.1');
There are two reasons why I think it is not using Squid:
1. The non-static wiki pages are never cached and other content like JPGs are cached fine.
2. Mediawiki is not using the X-Forwarded-for header on the pages - at the top of the page the IP address is always 127.0.0.1 .
I have looked up how to setup Mediawiki for use with Squid on many sites and they all point to just adding these two lines, I have even changed the values in DefaultSettings.php in case it is using those instead!
Does anyone have any ideas? Please let meknow if you require more information.
Thanks,
Benjamin
Benjamin
I know that this is not stictly-speaking an issue with Squid, but this is the nearest I could find on the site.
I have Apache 2.0.55 (Ubuntu), PHP 5.1.2, Mediawiki 1.9.3 and Squid 2.5.12.
Squid is acting as a reverse proxy and is listening on port 80 and Apache is listening on port 85 so that I can still bypass squid for testing on another machine on the LAN.
Meidawiki is not using Squid, or is ignoring Squid despite the relevant variables being set in LocalSettings.php:
$wgUseSquid = true;
$wgSquidServers = array('127.0.0.1');
There are two reasons why I think it is not using Squid:
1. The non-static wiki pages are never cached and other content like JPGs are cached fine.
2. Mediawiki is not using the X-Forwarded-for header on the pages - at the top of the page the IP address is always 127.0.0.1 .
I have looked up how to setup Mediawiki for use with Squid on many sites and they all point to just adding these two lines, I have even changed the values in DefaultSettings.php in case it is using those instead!
Does anyone have any ideas? Please let meknow if you require more information.
Thanks,
Benjamin
Benjamin