apacheapache2apache2.2apache-modules

How to enable mod_info in Apache?


I've gone through the Apache guide to enable to mod_info.

As per doc:

In my case this link is not giving any info. Is there anything I need to install as mod_info.c or something? Is there anything I need to put as AddModule or something?


Solution

  • There should be a mod_info.so that must be on a path Apache 2 can find. For example, I have:

    kdp@darwin ccl $ locate mod_info.so
    /usr/lib64/apache2/modules/mod_info.so
    

    Then, I have these in my httpd.conf:

    ServerRoot "/usr/lib64/apache2"
    LoadModule info_module modules/mod_info.so
    

    This is made available by a snippet in /etc/apache2/modules.d/00_mod_info.conf:

    <IfDefine INFO>
    # Allow remote server configuration reports, with the URL of
    # http://servername/server-info
    <Location /server-info>
        SetHandler server-info
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
    </Location>
    </IfDefine>
    

    (The IfDefine is only needed because of the way stuff is set up on Gentoo.)