View Single Post
Old 9th January 2011, 21:41
calocen calocen is offline
Junior Member
Join Date: May 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to calocen
Default Reverse Proxy & Log Format

Tip when you install ispconfig 3 behind a reverse proxy like nginx.

In /etc/apache2/sites-available/ispconfig.conf changes '%h' to '%{X-Real-IP}i' to get this:

LogFormat "%v %{X-Real-IP}i %l %u %t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
In order to apache logs for awstats works properly.

I've also defined in my /etc/nginx/nginx.conf config file:
proxy_set_header   X-Real-IP        $remote_addr;
A better solution will be appreciated
Reply With Quote
Sponsored Links