Skip to main content

Comments

9 comments

  • cPanelLauren
    Hello, Where are you receiving that warning? The warning just seems to indicate that you're using a customized template, which in this instance (looking back at the old thread) it appears that you are in order to get the IP address to be viewed correctly. When you're copying ea4_main.default are you renaming it to main.local as well? Thank you,
    0
  • Miguel G
    It shows up in the Apache Configuration section. I"m doing as stated in the old thread: cp /var/cpanel/templates/apache2_4/ea4_main.default /var/cpanel/templates/apache2_4/ea4_main.local I have replaced %h by %a in LogFormat entries but for some reason I"m not getting the Real IP address as I have last weeks.
    0
  • cPanelLauren
    Hello, With your change in place can you rebuild the apache configuration and restart apache? I usually do the following: mv /etc/apache2/conf/httpd.conf{,.bak} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd
    0
  • Miguel G
    I have. Not sure why I am getting the internal IP address on some requests. Should I raise a ticket?
    0
  • cPanelLauren
    Hi @Miguel G Yes, please do open a ticket so we can take a closer look, once it's open please post the ticket number here so we can update this thread with the outcome. Thank you,
    0
  • Miguel G
    Ticket 9428125
    0
  • cPanelLauren
    Thank you @Miguel G I'll post the outcome of that ticket here when it's complete as well.
    0
  • Miguel G
    Not sure if this was overriden by any update but this seems to work It seems that configuring the trusted IP proxies for remote ip did the trick: root@myserver [/root# vi /etc/apache2/conf.modules.d/370_mod_remoteip.conf # Enable mod_remoteip LoadModule remoteip_module modules/mod_remoteip.so # These settings are specific to your environment, so # we'll leave them commented out until you manually set # them. I recommend carefully reading the documentation # as misconfiguration of this module can result in # potential data compromise. # # https://httpd.apache.org/docs/trunk/mod/mod_remoteip.html # --------------------------------------------------------- RemoteIPHeader X-Forwarded-For RemoteIPTrustedProxy XXX.XXX.XXX.XXX
    0
  • cPanelLauren
    Hi @Miguel G I'm happy to see that it's working again for you once more!
    0

Please sign in to leave a comment.