<div dir="ltr"><br clear="all"><div>Hey guys,</div><div><br></div><div> I'm trying to allow logins on my site. So I setup the following in my VCL under varnish 4:</div><div><br></div><div><div># Allow the beta site to login</div><div>   if ( req.http.host ~ "^beta\.jokefire\.com$" && req.url ~ "^?oa_social_login_source=custom$" ) {</div><div>      return (pass);</div><div>   }</div></div><div><br></div><div>But when I go to do a syntax check on the VCL I get the following error:</div><div><br></div><div><div>#varnishd -C -f default.vcl</div><div>Message from VCC-compiler:</div><div>Regexp compilation error:</div><div><br></div><div>nothing to repeat</div><div><br></div><div>('input' Line 111 Pos 62)</div><div>   if ( req.http.host ~ "^beta\.jokefire\.com$" && req.url ~ "^?oa_social_login_source=custom$" ) {</div><div>-------------------------------------------------------------##################################----</div><div><br></div><div>Running VCC-compiler failed, exited with 2</div><div><br></div><div>VCL compilation failed</div></div><div><br></div><div><br></div><div>Could I get a little help with the syntax to get this working?</div><div><br></div><div>Thanks,</div><div>Tim</div>-- <br><div class="gmail_signature">GPG me!!<br><br>gpg --keyserver <a href="http://pool.sks-keyservers.net" target="_blank">pool.sks-keyservers.net</a> --recv-keys F186197B<br><br></div>
</div>