Rewriting/enforcing SSL behing an SSL termination point

Per Buer perbu at varnish-software.com
Tue Jan 3 15:24:13 CET 2012


Hi Cian,

On Sun, Jan 1, 2012 at 2:22 AM, Cian Mc Govern <cianmcgovern91 at gmail.com>wrote:

I'm having an issue when I try to implement the redirect and reload varnish:
>
> Message from VCC-compiler:
> Expected variable, string or semicolon
> (input Line 17 Pos 68)
>         set req.http.x-redir-url = "https://www.cianmcgovern.com/" +
> req.url;
>
> ---------------------------------------------------------------------------#---------
>
> Can't find a solution to this but I suspect it might be due to the
> version, 2.1.5, I'm using??
>

In 2.1 string concatenation looks like this:
 set req.http.x-redir-url = "https://www.cianmcgovern.com/" req.url;

In 3.0 this was done explicit using "+".


> Thanks for any help!
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>



-- 
Per Buer, CEO
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
*Varnish makes websites fly!*
Whitepapers <http://www.varnish-software.com/whitepapers> |
Video<http://www.youtube.com/watch?v=x7t2Sp174eI> |
Twitter <https://twitter.com/varnishsoftware>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120103/221dfa66/attachment-0001.html>


More information about the varnish-misc mailing list