<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%t %a %A %p %r %q %s %B %D %{User-Agent}i %{Referer}i"
resolveHosts="false" />
This is my server.xml ,then i found the result is like this:
[29/Mar/2017:10:36:16 +0800] 192.168.5.149 127.0.0.1 80 GET /favicon.ico HTTP/1.1 404 0 0 Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 -
in the server.xml %A just give me the loop ip, but i want eth0 ip ..
So what should i do? Thanks a lot!