Here's my Tomcat conf:
======================================================
<Valve className="org.apache.catalina.valves.RemoteIpValve"
internalProxies="127.0.0.1"
remoteIpHeader="x-forwarded-for"
remoteIpProxiesHeader="x-forwarded-by"
protocolHeader="x-forwarded-proto" />
======================================================
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
prefix="localhost_access_log"
suffix=".txt"
pattern="%a Remote User[ %{X-Forwarded-For}i %l %u %t ] Request[ %r ]
Status Code[ %s ] Bytes[ %b ] Referer[ %{Referer}i ] Agent[ %{User-agent}i ]
" />
======================================================
and in catalina.out I get correct remote & local IP (local IP do not use
nginx but connect directly to tomcat on port 8080) and in
localhost_access_log-* I get full detailed logs.
Alessandro
--
Sent from:
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]