Re: can't log in or create new users on mediawiki

2015-08-17 Thread Tim Dunphy
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:

Re: can't log in or create new users on mediawiki

2015-08-17 Thread Poul-Henning Kamp
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

Re: can't log in or create new users on mediawiki

2015-08-17 Thread Balder VC
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

Re: can't log in or create new users on mediawiki

2015-08-17 Thread Tim Dunphy
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

Re: can't log in or create new users on mediawiki

2015-08-17 Thread Tim Dunphy
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 ||

Re: can't log in or create new users on mediawiki

2015-08-17 Thread Balder VC
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,

Re: can't log in or create new users on mediawiki

2015-08-17 Thread Geoff Simmons
-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.

Re: can't log in or create new users on mediawiki

2015-08-17 Thread Tim Dunphy
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:

Re: can't log in or create new users on mediawiki

2015-08-17 Thread Mark Felder
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

can't log in or create new users on mediawiki

2015-08-16 Thread Tim Dunphy
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 ~