Sending a ? to the backend

Guillaume Quintard guillaume at varnish-software.com
Fri Sep 2 07:51:51 CEST 2016


Did should work, have a look at varnishlog (Req AND corresponding Bereq),
it will give you a better view of what is going on. If in doubt, pastebin
it, and send us the link.

And obviously, make sure you have nothing else in you vcl that could
interfer with that if.

-- 
Guillaume Quintard

On Thu, Sep 1, 2016 at 7:58 PM, Ian Macdonald <ianmac51 at gmail.com> wrote:

> Hi All,
>
> I am having trouble rewriting a url I need to send a question mark to
> the backend and it just does not seem to work I have tried escaping
> the ?, long strings, regsub() and all seem to fail.  here is a snippet
> if anyone can point me in the right direction
>
> vcl_recv {
> ...
>
> if (req.url ~ "^/myurl$") {
>
>                         set req.url = {"/search?q=term"};
>                         return (pass);
>
>
>
>
> ...
>
> }
>
> quick httpie check gets seems to show anything from the ? goes missing
>
>  <p>The requested URL <code>/search</code> was not found on this
> server.  <ins>That’s all we know.</ins>
>
> varnish is 4.1.3 on centos 6.8
>
> Cheers
>
> Ian
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20160902/5c15eac7/attachment.html>


More information about the varnish-misc mailing list