Varnish URL rewrite
Paulo Silva
paulojjs at gmail.com
Sat Mar 23 04:01:51 CET 2013
Hi,
I think what you want is described in the wiki (see the req.http.host
example):
https://www.varnish-cache.org/trac/wiki/RedirectsAndRewrites
If you want to send a redirect to the browser try something like this:
https://www.varnish-cache.org/trac/wiki/VCLExampleRedirectInVCL
2013/3/22 Raphael Rabelo <rabelo at raphaelr.com.br>
> Hi guys!
>
> I'm tried to rewrite an url with varnish, and i need the help of yours:
>
> The URL www.meysite.com/something redirect to subpage "Something"
>
> but
>
> the url mysite.com/something redirect to home :S
>
> How can i save all after "/" and rewrite the url with "www"
> Ex.
>
> request url = mysite.com/something
> after rewrite = www.mysite.com/something
>
> Thanks!
>
> rabeloo
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
--
Paulo Silva <paulojjs at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130323/65963a3a/attachment.html>
More information about the varnish-misc
mailing list