Running ISPConfig 3.1 on debian 9 I've enabled mod_remoteip, verified the module is loaded and created remoteip.conf in /etc/apache2/conf-available/ containing: RemoteIPHeader X_FORWARDED_FOR RemoteIPTrustedProxy <IP OF PROXY> Attempting to then obtain the forwarded IP in the apache logs by modifying the LogFormat directive. Have tried manually changing ispconfig.conf file LogFormat line to: LogFormat "%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig That resulted in the log entries going into the other_vhosts access log but still no real IP logged from the proxy. I also tried adding the above in the apache directives area for the site in ispconfig, log entries went to the usual vhosts logfile but still not seeing the forwarded (real) IPs from the proxy. Also tried modifying the LogFormat statement in apache2.conf. Would be interested in any suggestions on this. Thanks!
The log format must start with %v. Your log format cannot work as it is not compatible with vlogger which requires the first part to be the vhost which it uses to split the log for the different websites.
in that case can we: 1) add the IP from the proxy/load balancer into the log line somewhere maintaining %v in the beginning 2) live with all logs from all sites logging to the same file ? Any recommendations? We have need often of a load balancer or proxy as a front end. Thanks