Apache Error Log Logs Server IP not Remote IP
Apache Error Log Logs Server IP not Remote IP
I just added a bug report for this, but thought I'd post it in the forum too, so people can find it.
Web Server: Apache, Apache + nginx
Apache Error Log Logs Server IP not Remote IP, although the Access log is OK.
This can be corrected for Apache 2.4+ by adding a line into the Virtual Host apache config file to adjust ErrorLogFormat
Ref: http://httpd.apache.org/docs/2.4/mod/co ... rlogformat
Default value (i.e the value if unset) is:
ErrorLogFormat "[%t] [%l] [pid %P] [client %{c}a] %M"
As we're using rpaf, we can use this format instead:
ErrorLogFormat "[%t] [%l] [pid %P] [client %{X-Forwarded-For}i] %M"
and insert it under ErrorLog directive in the virtualhost config file
Or perhaps this would be better as a global change in apache2.conf?
Web Server: Apache, Apache + nginx
Apache Error Log Logs Server IP not Remote IP, although the Access log is OK.
This can be corrected for Apache 2.4+ by adding a line into the Virtual Host apache config file to adjust ErrorLogFormat
Ref: http://httpd.apache.org/docs/2.4/mod/co ... rlogformat
Default value (i.e the value if unset) is:
ErrorLogFormat "[%t] [%l] [pid %P] [client %{c}a] %M"
As we're using rpaf, we can use this format instead:
ErrorLogFormat "[%t] [%l] [pid %P] [client %{X-Forwarded-For}i] %M"
and insert it under ErrorLog directive in the virtualhost config file
Or perhaps this would be better as a global change in apache2.conf?