June 23

How to restore Real IPs in Engintron

To fix the mod_remoteip after software update:

cp -pv /etc/apache2/conf.modules.d/*remoteip.conf.rpmsave /etc/apache2/conf.modules.d/mod_remoteip.conf

To restore the logs if the issue with the logs:

1.
cp -a /var/cpanel/templates/apache2_4/ea4_main.default /var/cpanel/templates/apache2_4/ea4_main.local

2.
replace all %h by %{X-Real-IP}i
in /var/cpanel/templates/apache2_4/ea4_main.local

3.
/scripts/rebuildhttpdconf

4.
/engintron.sh purgecache


Copyright 2021. All rights reserved.

Posted 23 June 2017 by admin in category "simple memo

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.