-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/12/2010 03:02 AM, Chris Hecker wrote:
> Basically, varnishd listening on a bunch of ips, and then httpd
> listening on localhost:80 and all the sites as NameVirtualHosts.
> This seems to work well so far, but it has the disadvantage that if
> somebody goes to the raw ip addresses with their browser, they'll
> get the same site.
Hi Chris,
How about print a message like "request not allowed" ?
example:
if (req.http.host ~ "^a.b.c$"){
...
}
if (req.http.host ~ "^d.e.f$"){
...
}
else {
error 403 "Cache: Request not allowed.";
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkw7KDgACgkQNRQApncg2942LACgilJnzLvaE6BrBbuMeTBgPg/E
hAgAoKg5cfZ2EbXQbTreOsv7t8lm0yEB
=r0EI
-----END PGP SIGNATURE-----
_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc