Hey guys,
I've setup mediawiki behind Varnish 4. And I've figured out a way to get
updates to the wiki to pass through to the web server. But of course any
edits you make to the wiki site don't get updated unless you clear the
varnish cache.
I tried putting this into the varnish config under vcl_recv in an attempt
to get allow the site to be updated when you edit the wiki:
# Allows you to edit the wiki
if (req.url ~ "&action=submit($|/)") {
return (pass);
ban(req.url);
}
And in the LocalSettings.php file on the mediawiki setup, I have the
following:
$wgUseSquid = true;
$wgSquidServers = array( xx.xx.xx.xx', 'xx.xx.xx.xx' );
$wgUsePrivateIPs = true;
Any ideas on how I can get mediawiki to update it's content automaticaly
from behind varnish?
Thanks,
Tim