After manually updating Apache on Debian 11, the Apache Directives in the ISPConfig site settings do not work. RemoteIPHeader CF-Connecting-IP returns the IP of the visitor, not the IP of the Cloudflare CDN. After updating the Apache manually, it does not work. Updated Apache version is 2.4.57.
List of enabled modules. Loaded Modules: core_module (static) so_module (static) watchdog_module (static) http_module (static) log_config_module (static) logio_module (static) version_module (static) unixd_module (static) access_compat_module (shared) actions_module (shared) alias_module (shared) auth_basic_module (shared) auth_digest_module (shared) authn_core_module (shared) authn_file_module (shared) authz_core_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgid_module (shared) dav_module (shared) dav_fs_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) fcgid_module (shared) filter_module (shared) headers_module (shared) http2_module (shared) include_module (shared) mime_module (shared) mpm_prefork_module (shared) negotiation_module (shared) passenger_module (shared) php_module (shared) proxy_module (shared) proxy_fcgi_module (shared) proxy_http_module (shared) python_module (shared) reqtimeout_module (shared) rewrite_module (shared) setenvif_module (shared) socache_shmcb_module (shared) ssl_module (shared) status_module (shared) suexec_module (shared)
When you add Apache Directives in ISPConfig, no content is added to /etc/apache2/etc/apache2/sites-available/domain.vhost. What's the problem?
Most likely apache rejected what you added to the field, in this case the last working config is used again. You probably have a file /etc/apache2/etc/apache2/sites-available/domain.vhost.err now, which contains the config apache was unable to use. Replace /etc/apache2/etc/apache2/sites-available/domain.vhost with /etc/apache2/etc/apache2/sites-available/domain.vhost.err, restart apache and check apache error.log to see why it does not work with that config.
Sure but if your settings are already correct it will be changed to a proper vhost file and there is no need to manually delete it.