Category: Plesk

Log analyzing behind reverse proxy

By , 14/07/2011 23:59

Plesk has AWStats built-in but since I use a reverse proxy on my server to redirect certain sites to separate virtual containers, the log files always showed the internal IP of my reverse proxy. mod_rpaf solved this issue. It looks for the X-Forwarded-For header added by the proxy and puts it back as the original IP.

Another solution would be to change the LogFormat of the plesklog lines to incorporate the header but experience in the past has learned me to leave Plesk alone for as much as possible.

Flattr this!

Panorama Theme by Themocracy