Simple redirect
Per Buer
perbu at varnish-software.com
Fri Feb 10 14:57:06 CET 2012
hi,
On Thu, Feb 9, 2012 at 5:59 PM, 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/" ) );
> }
>
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120210/e75b12d3/attachment.html>
More information about the varnish-misc
mailing list