request . getremoteuser = =零;如何记录从apache到tomcat的所有流量



我有一个连接器定义为:

<Connector protocol="AJP/1.3" enableLookups="false" tomcatAuthentication="false"        scheme="https" 
    secure="true" 
    address="127.0.0.1" 
    port="8009" />
然而,

请求。gettremoteuser返回null

我的问题是我如何使Apache日志'一切'它发送到Tomcat?我有apache和mod_jk的日志级别设置为"debug"。

启用mod_jk日志应该可以达到目的:

# Where to put jk logs
JkLogFile     /var/log/httpd/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel    debug

希望对你有帮助。

最新更新