My website is protected by Cloudflare. The problem is that the visitor IP is recorded as the Cloudflare IP, so I modified the vhost file. It works fine the first time, but after some time the RemoteIPHeader syntax gets deleted on its own. I am wondering how to apply the RemoteIPHeader CF-Connecting-IP syntax in the web panel.
Never edit vhost files manually, use the apache directives field on the options tab of the website instead to add additional config.
I applied it like the picture above last time, but it didn't work, but it works this time. thank you.
It does get not get applied when apache refuses to start with the config, so there must have been a typo when you added it the first time. or you did not wait until changes were written to disk.