Simple redirect

Javier Frias jfrias at gmail.com
Fri Feb 10 18:17:30 CET 2012


your vltrans.php script to translate output is amazing, great hack!
Human readability is often sacrificed in tools.

Thanks,

-Javier

On Thu, Feb 9, 2012 at 11:59 AM, kokoniimasu <kokoniimasu at gmail.com> wrote:
> Hi,
>
> Varnish redirect is necessary to write in two actions.
> I tried to be simply redirect.
>
> For example, to redirect  http://www.example.com
>
>
>    import rewrite;
>    sub vcl_recv{
>      error( rewrite.location( 302,"http://www.example.com/" ) );
>    }
>
>
> vcl_error is not necessary
>
> blog-post:
>  http://blog.xcir.net/index.php/2012/02/varnish-redirect-operation-to-easylibvmod-rewrite/
>
> code:
>  https://github.com/xcir/libvmod-rewrite
>
>
> and wrote code to simplify the output of the varnishlog.
>  http://blog.xcir.net/index.php/2012/02/convert-varnishlog-output-to-easy/
>
>
> I hope that this code is of help to you.
>
> --
> Syohei Tanaka(@xcir)
> http://xcir.net/
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc



More information about the varnish-misc mailing list