Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Apache Error Log Logs Server IP not Remote IP

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Apache Error Log Logs Server IP not Remote IP
  • Quote

Post by plutocrat » Tue Aug 28, 2018 2:22 am

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?
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password