Hi Geoff,
I don't know how it works with mediawiki, but let's talk about regexen
again. %^)
req.http.host ~ ^wiki\.example\.com$
If you're going for an exact string match -- '^' followed by a fixed
string followed by '$' -- you might as well just compare for string
equality:
I think I saw a mediawiki/wikimedia (I can never figure out how
that split is supposed to work...) page about setting up Varnish
in front. Have you checked if there's a explanation there ?
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since
As advised on mediawiki's wiki (
https://www.mediawiki.org/wiki/Manual:Varnish_caching )
# Pass requests from logged-in users directly.
if (req.http.Authorization || req.http.Cookie)
{return(pass);} /* Not cacheable by default */
you could also check req.http.Cookie's
maybe you have a unset req.http.Cookie; that shouldn't be called when a
user is logged in/going to login.
Maybe try to find a way to always call (pass) when a user is logged in. I
think you 'd be better of not caching when a user is logged in.
Of course we don't know the use case of your
I based my vanrish config on these recommendations from mediawiki:
https://www.mediawiki.org/wiki/Manual:Varnish_caching
And I do have that setting in my VLC that bypasses the cache for any
cookies it finds:
# Pass requests from logged-in users directly.
if (req.http.Authorization ||
On 08/17/2015 05:02 PM, Tim Dunphy wrote:
So I think I need to find a way to preserve the cookie that's being
used to identify the user at the end of the URL, which I'm pretty sure
will be a random string. Can you help me find a way to do this?
Thanks,
Tim
On Mon, Aug 17, 2015 at 2:24 AM,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
On 8/17/15 5:29 AM, Tim Dunphy wrote:
I've setup my mediawiki behind varnish. Since doing that I am
unable to either create new users or log into the wiki itself.
I don't know how it works with mediawiki, but let's talk about regexen
again.
Hey Mark,
That's pretty awesome! Thanks, I'll check it out.
Tim
On Mon, Aug 17, 2015 at 4:06 PM, Mark Felder f...@feld.me wrote:
On Mon, Aug 17, 2015, at 14:43, Tim Dunphy wrote:
I based my vanrish config on these recommendations from mediawiki:
On Mon, Aug 17, 2015, at 14:43, Tim Dunphy wrote:
I based my vanrish config on these recommendations from mediawiki:
https://www.mediawiki.org/wiki/Manual:Varnish_caching
And I do have that setting in my VLC that bypasses the cache for any
cookies it finds:
# Pass requests from
Hey all,
I've setup my mediawiki behind varnish. Since doing that I am unable to
either create new users or log into the wiki itself.
I've tried putting the following into my vcl_recv, however that didn't seem
to help as I'd expected:
if ( req.http.host ~ ^wiki\.example\.com$ req.url ~
10 matches
Mail list logo