hi,

On Thu, Feb 9, 2012 at 5:59 PM, kokoniimasu <[email protected]> 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/"; ) );
>    }
>


Very nice. I'll add this to the module overview once we get it up and
running (it suffered a bit when we had our server crash).

Per.



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

Reply via email to