Reverse Proxy & Log Format
- Written by alamise
- font size decrease font size increase font size
- Print Email
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:
Code:
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:
Code:
proxy_set_header X-Real-IP $remote_addr;
A better solution will be appreciated
Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
back to top