<div dir="ltr">Thank you Guillaume!!<div><br></div><div>Alex</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 26, 2019 at 10:12 AM Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com">guillaume@varnish-software.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Alex,<div><br></div><div>You can do:</div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><i><font face="monospace"><br></font></i></div></div><div><div><i><font face="monospace">sub vcl_recv {</font></i></div></div><div><div><i><font face="monospace"> if (req.url ~ "wp-admin|wp-login" ||</font></i></div></div><div><div><font face="monospace"><i> (req.url ~ "</i>[^?]+\?([^&]*&)*page_id=1955(&|$)<i>") && </i>[^?]+\?([^&]*&)*edit-account(&|$)<i>) {</i></font></div></div><div><div><i><font face="monospace"> return (pass);</font></i></div></div><div><div><i><font face="monospace"> }</font></i></div></div><div><div><i><font face="monospace">} </font></i></div></div></blockquote></div><div><div><br></div><div>There are vmods to handle this more cleanly, but this regex approach will work everywhere.</div><div><br></div><div><div dir="ltr"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 26, 2019 at 6:57 AM Alex Evonosky <<a href="mailto:alex.evonosky@gmail.com" target="_blank">alex.evonosky@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello fellow Varnish users-<div><br></div><div>I hope this is not a redundant question, but I do have a simple question for a Varnish config:</div><div><br></div><div><br></div><div>I am running Word-press behind a varnish cluster and everything works great. I do seem to have one simple issue. </div><div><br></div><div><br></div><div>I want to allow a "pass" for Woo-commerce login which looks like this:</div><div><br></div><div><b><i>/?page_id=1955&edit-account</i></b><br></div><div><br></div><div><br></div><div>My current vcl to pass logins for Word-press looks like:</div><div><br></div><div><b><i>sub vcl_recv {<br> if (req.url ~ "wp-admin|wp-login") {<br> return (pass);<br>} </i></b><br></div><div><br></div><div><br></div><div>I just want to add the <b><i>/?page_id=1955&edit-account</i></b> to the above so users can alo log in via that page as well.</div><div><br></div><div>Is this possible?</div><div><br></div><div><br></div><div>Thank you,</div><div>Alex</div><div><br></div><div><br></div></div>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div>
</blockquote></div>