On 11.7.2011 20:57, Konstantin Kolinko wrote:
I wonder how Apache HTTPD server handles IP6 addresses.

Out-of-the-box, without any specific configuration, my httpd 2.2.3 installation on CentOS 5.6, seems to use canonized text representation. Here is the log excerpt, slightly obfuscated:

====
2001:aaaa:0:a::aa - - [11/Jul/2011:22:32:03 +0200] "GET /aaa/aaa.css HTTP/1.1" 304 - "http://aaa.example.com/aaa/aaa.aaa"; "Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0"
----

So does Linux:

====
login as: root
root@aaa's password:
Last login: Wed Jul  6 14:17:27 2011 from 2001:aaaa:0:a::aa
[root@aaa ~]# host aaa
aaa.example.com has address 123.12.1.123
aaa.example.com has IPv6 address 2001:aaaa:0:aa::aaa
----

...and Windows XP:

====
C:\Documents and Settings\ognjen>netstat -na

Active Connections

  Proto  Local Address          Foreign Address        State
(snip)
TCP [2001:aaaa:0:a::aa]:2276 [2001:aaaa:0:aa::aaa]:22 ESTABLISHED 0
----

2. AccessLogValve system property (-D...)
3. Global Tomcat XML parameter?
4. Global Tomcat system property?

I do not like 2.,3. or 4.

I understand, but then we should add similar parameter to every other filter/valve/logger that could use IPv6 addresses, right?


-Ognjen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to