URL Rewriting
Alex Harrington
alex at longhill.org.uk
Sat Mar 8 19:08:01 CET 2008
Hi again
Many thanks for all the help on and off list.
I've tightened the regexp as suggested and am now setting req.url
instead of req.http.url and It's working perfectly in the lab.
Thanks again
Alex
sub vcl_recv {
if (req.http.host ~ "^(www\.)?deansleisurecentre\.com$") {
set req.http.host = "deansleisurecentre.com";
set req.url = regsub(req.url, "^/$", "/dlc");
}
}
--
Alex Harrington - Network Manager, Longhill High School
t: 01273 304086 | e: alex at longhill.org.uk
More information about the varnish-misc
mailing list