Skip to content

Commit c4a55da

Browse files
author
Christopher Frost
committed
Update the Tomcat Access Log Pattern
Due to a change in the Access Logging produced by the GoRouter the 'X-Forwarded-For' header is no longer required. The commit removes it. See: #75 (comment) [#77701034]
1 parent 840da8b commit c4a55da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/tomcat/conf/server.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<Engine defaultHost='localhost' name='Catalina'>
2727
<Valve className="org.apache.catalina.valves.RemoteIpValve" protocolHeader="x-forwarded-proto"/>
2828
<Valve className="com.gopivotal.cloudfoundry.tomcat.logging.access.CloudFoundryAccessLoggingValve"
29-
pattern='[ACCESS] %{org.apache.catalina.AccessLog.RemoteAddr}r %l %t %D %F %B %S vcap_request_id:%{X-Vcap-Request-Id}i x-forwarded-for:[%{org.apache.catalina.AccessLog.RemoteAddr}r, %a]'
29+
pattern='[ACCESS] %{org.apache.catalina.AccessLog.RemoteAddr}r %l %t %D %F %B %S vcap_request_id:%{X-Vcap-Request-Id}i'
3030
enabled="${access.logging.enabled}"/>
3131
<Host name='localhost'>
3232
<Listener className="com.gopivotal.cloudfoundry.tomcat.lifecycle.ApplicationStartupFailureDetectingLifecycleListener"/>

0 commit comments

Comments
 (0)