Apache Directives not working after Apache update

Discussion in 'Installation/Configuration' started by kcafe703, Jun 19, 2023.

  1. kcafe703

    kcafe703 New Member

    After manually updating Apache on Debian 11, the Apache Directives in the ISPConfig site settings do not work.

    upload_2023-6-19_14-38-21.png
    RemoteIPHeader CF-Connecting-IP returns the IP of the visitor, not the IP of the Cloudflare CDN.

    upload_2023-6-19_14-42-38.png
    After updating the Apache manually, it does not work.
    Updated Apache version is 2.4.57.
     

    Attached Files:

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You might have missed enabling a required Apache module like the header module in this case.
     
  3. kcafe703

    kcafe703 New Member

    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)
     
  4. kcafe703

    kcafe703 New Member

    When you add Apache Directives in ISPConfig, no content is added to /etc/apache2/etc/apache2/sites-available/domain.vhost. What's the problem?
     
  5. pyte

    pyte Well-Known Member HowtoForge Supporter

    The required mod is not enabled.

    Code:
    sudo a2enmod mod_remoteip
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  7. kcafe703

    kcafe703 New Member

    I solved the problem. Can I delete the domain.vhost.error file?
     
  8. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    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.
     

Share This Page