Types
Flavio Torres
fla_torres at yahoo.com.br
Tue Jun 28 19:21:09 CEST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/28/2011 01:29 PM, Roberto O. Fernández Crisial wrote:
> Hi guys,
>
> I need to know which should be the best way to use "if
> (req.http.host == server.ip)" at vcl_recv subrutine with Varnish 3.0?
> I've been working with this "if" on Varnish 2.1.5 and it works fine.
> Now, with Varnish 3.0, I got "Comparison of different types: STRING
> '==' IP" error msg
>
Hello,
Try:
if (req.http.host == "192.168.0.1") {
...
}
Hope this helps.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4KDYMACgkQNRQApncg297NagCg4QXu4GP7cM9VdtJjxeDVt5zK
/VYAoIIsETLFnuozIiaSFJhH1EIfZyed
=jGdK
-----END PGP SIGNATURE-----
More information about the varnish-misc
mailing list