logical or statement failing

Tim Dunphy bluethundr at gmail.com
Sun Aug 16 06:01:36 CEST 2015


Hey guys,

 I'm trying to allow logins on my site. So I setup the following in my VCL
under varnish 4:

# Allow the beta site to login
   if ( req.http.host ~ "^beta\.jokefire\.com$" && req.url ~
"^?oa_social_login_source=custom$" ) {
      return (pass);
   }

But when I go to do a syntax check on the VCL I get the following error:

#varnishd -C -f default.vcl
Message from VCC-compiler:
Regexp compilation error:

nothing to repeat

('input' Line 111 Pos 62)
   if ( req.http.host ~ "^beta\.jokefire\.com$" && req.url ~
"^?oa_social_login_source=custom$" ) {
-------------------------------------------------------------##################################----

Running VCC-compiler failed, exited with 2

VCL compilation failed


Could I get a little help with the syntax to get this working?

Thanks,
Tim
-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150816/fdfb1b30/attachment.html>


More information about the varnish-misc mailing list