From: Steinar H. Gunderson Date: Sat, 28 Nov 2015 12:03:19 +0000 (+0100) Subject: Make the example VCL stub ignore the port number. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=0beaa7cff04957e17f54267e1130189bdb9868c2;ds=sidebyside Make the example VCL stub ignore the port number. --- diff --git a/doc/README b/doc/README index ec68afa..2646d3e 100644 --- a/doc/README +++ b/doc/README @@ -13,7 +13,7 @@ backend pr0n { } sub vcl_recv { - if (req.http.host == "pr0n.sesse.net") { + if (req.http.host ~ "^pr0n\.sesse\.net(:[0-9]+)?$") { set req.backend_hint = pr0n; } } @@ -30,7 +30,7 @@ sub vcl_deliver { } sub vcl_backend_response { - if (bereq.http.host == "pr0n.sesse.net") { + if (bereq.http.host ~ "^pr0n\.sesse\.net(:[0-9]+)?$") { set beresp.ttl = 1w; set beresp.http.x-varnish-host = bereq.http.host; set beresp.http.x-varnish-url = bereq.url;