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 <[email protected]> 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
> [email protected]
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to