server.ip for "undoing" namevirtualhosts issues
Flavio Torres
fla_torres at yahoo.com.br
Mon Jul 12 16:35:40 CEST 2010
-----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-----
More information about the varnish-misc
mailing list