In message <[email protected]>, Chris Hecker writes: >if(!req.http.host || > (req.http.host ~ "^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$")) >{ > blah; >} > >but I haven't tried that yet, since I realized I don't need it yet. >Does that look right?
yeah, looks pretty good to me. Not sure if you risk seeing a port number in the Host: header also ? Remeber that you can always start a varnish on a different port number to experiement with. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [email protected] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ varnish-misc mailing list [email protected] http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
