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

Mailing List Archive: Varnish: Misc
URL rewrite with Varnish
 

Index | Next | Previous | View Flat


zawierta at gmail

Apr 3, 2012, 5:52 AM


Views: 109
Permalink
URL rewrite with Varnish

Hello,

Is it possible to handle such case: my webapp is running on
http://10.0.0.10:8888/content/site/EN.html and whole site is on base url:
http://10.0.0.10:8888/content/site/.

I want to make my site available via Varnish on url:
http://mysite.mydomain.com/ - I want to remove whole stuff after / from url.

Rule:
sub vcl_recv {
if (req.http.host ~ "^(www\.)?mysite\.mydomain\.com$" ) {
set req.url = regsub(req.url, "^/content/site/", "/");
}
}

isn't working at all.

Regards
R.

Subject User Time
URL rewrite with Varnish zawierta at gmail Apr 3, 2012, 5:52 AM

  Index | Next | Previous | View Flat
 
 


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