Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

Varnish URL rewrite

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


rabelo at raphaelr

Mar 22, 2013, 2:16 PM

Post #1 of 2 (402 views)
Permalink
Varnish URL rewrite

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


paulojjs at gmail

Mar 22, 2013, 8:01 PM

Post #2 of 2 (350 views)
Permalink
Re: Varnish URL rewrite [In reply to]

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>

> 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
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>



--
Paulo Silva <paulojjs [at] gmail>

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.