-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 André,
On 9/24/12 3:58 AM, André Warnier wrote: > 1) curl http://localhost/something > > Result in log : > > ::1 - - [24/Sep/2012:09:22:51 +0200] "GET /something HTTP/1.1" 404 > 282 "-" "curl/7.21.0 (i486-pc-linux-gnu) libcurl/7.21.0 > OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6" Ooh, I hadn't thought of IPv6, though the tcpdump info clearly shows the use of IPv4 and, for some reason, requests to a non-localhost IP address being routed through the loopback (that's 'lo' in Linux-speak) device. It looks like something is wildly misconfigured somewhere. > Yet, you seem to experience different results with Tomcat. > > So something else is amiss. If, from the same host, you issue a > request to "localhost", Tomcat should see this request as coming > from either the IPv4 address "127.0.0.1" or the IPv6 address "::1". > If Tomcat does not see it that way, then something is wrong. (I know this isn't IPv6, but it occurs to me that Tomcat always uses the long-form of theIPv6 address while Apache httpd is a bit smarter about it (e.g. httpd reports ::1 while Tomcat would report either 0000:0000:0000:0000:0000:0000:0000:0001 or 0:0:0:0:0:0:0:1). Be aware of that when setting up regular expressions to handle IPv6 localhost) > Separately, and without taking anything away from the above : Your > technique of using the Remote Address Filter seems correct to me, > and your settings also. What I suspect however, is that there is > something peculiar with your /etc/hosts file (or your requests), > that makes the requests "go out" through an interface other than > the one you expect. +1 - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBgrosACgkQ9CaO5/Lv0PCs5QCgmxZlB3ATAe7ckdlaqZLmK7Au aBYAnReA6qVVjl0wxIc8WybnOk9uj+2y =HFhd -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org