Skip to main content

RemoteIP and Proxy server config

Comments

4 comments

  • cPanelLauren
    Hi @UCLA-Daniel While I'm unsure if related based on the information you provided I do know there were issues with the recent EasyApache update last night which we discuss in a blog post today:
    0
  • cPanelLauren
    Hi @UCLA-Daniel I apologize I believe I misread your initial post. I was able to find a ticket that was opened for you for this issue and it looks like in this instance the modifications directly to 370_mod_remoteip.conf and 360_mod_remoteip.conf were the culprit. Modifications made here are subject to being overwritten and it is best to make these changes in /etc/apache2/conf.d/includes to ensure that a future update won't be overwritten. I also want to thank you for your kind words and your letting us know of the issue, we do very much appreciate it. Thank you,
    0
  • UCLA-Daniel
    Hi Lauren, Yes, looks like the way I configured remoteIP was not the best way. I got the instructions (best practices) from my support ticket tech and will post here. Hopefully it will help someone else avoid my pitfalls. Again thank you and cPanel for the great job you guys do day in and day out! Another save by Support and the Forum!! #### Correct way to configure RemoteIP in cPanel #### [quote] Hi there, I was able to confirm similar, but not exact behavior as what you had advised. When upgrading from: ea-apache24-mod_remoteip-2.4.29-9.9.1.cpanel.x86_64 to: ea-apache24-mod_remoteip-2.4.33-1.1.2.cpanel.x86_64 the conf.modules.d file does in fact modify from: 360_mod_remoteip.conf to: 370_mod_remoteip.conf However, this has not what is responsible for getting rid of your customizations. The entire directory /etc/apache2/conf.modules.d/ is not intended to be edited or changed by system administrators. All files in this directory, including 360_mod_remoteip.conf and 370_mod_remoteip.conf, will revert anytime their related EA4 RPM is updated by cPanel Development. Specifically, you will see the old file renamed as ".rpmsave" if it had customizations to it by the RPM update system. Regardless of the 360 -> 370 name change, this would have (and will continue to) revert out each time the mod_remoteip package is updated. For any customizations, please instead place them inside the appropriate include file within: /etc/apache2/conf.d/includes/ A good one to use is usually: pre_virtualhost_global.conf More information on Apache Includes can be found here:
    0
  • cPanelLauren
    Hi Dan, I'm really happy we were able to help you get that sorted. Thank you so much for posting the configuration instructions as well! Thank you!
    0

Please sign in to leave a comment.