Simple redirect

kokoniimasu kokoniimasu at
Thu Feb 9 17:59:27 CET 2012


Varnish redirect is necessary to write in two actions.
I tried to be simply redirect.

For example, to redirect

    import rewrite;
    sub vcl_recv{
      error( rewrite.location( 302,"" ) );

vcl_error is not necessary



and wrote code to simplify the output of the varnishlog.

I hope that this code is of help to you.

Syohei Tanaka(@xcir)

More information about the varnish-misc mailing list