Blame SOURCES/README.redhat.rst

cd021e
Red Hat Specific mod_auth_mellon Information
cd021e
============================================
cd021e
cd021e
This README contains information specific to Red Hat's distribution of
cd021e
``mod_auth_mellon``.
cd021e
cd021e
Diagnostic Logging
cd021e
------------------
cd021e
cd021e
Diagnostic logging can be used to collect run time information to help
cd021e
diagnose problems with your ``mod_auth_mellon`` deployment. Please see
cd021e
the "Mellon Diagnostics" section in the Mellon User Guide for more
cd021e
details.
cd021e
cd021e
How to enable diagnostic logging on Red Hat systems
cd021e
```````````````````````````````````````````````````
cd021e
cd021e
Diagnostic logging adds overhead to the execution of
cd021e
``mod_auth_mellon``. The code to emit diagnostic logging must be
cd021e
compiled into ``mod_auth_mellon`` at build time. In addition the
cd021e
diagnostic log file may contain security sensitive information which
cd021e
should not normally be written to a log file. If you have a
cd021e
version of ``mod_auth_mellon`` which was built with diagnostics you
cd021e
can disable diagnostic logging via the ``MellonDiagnosticsEnable``
cd021e
configuration directive. However given human nature the potential to
cd021e
enable diagnostic logging while resolving a problem and then forget to
cd021e
disable it is not a situation that should exist by default. Therefore
cd021e
given the overhead consideration and the desire to avoid enabling
cd021e
diagnostic logging by mistake the Red Hat ``mod_auth_mellon`` RPM's
cd021e
ship with two versions of the ``mod_auth_mellon`` Apache module.
cd021e
cd021e
1. The ``mod_auth_mellon`` RPM contains the normal Apache module
cd021e
   ``/usr/lib*/httpd/modules/mod_auth_mellon.so`` 
cd021e
cd021e
2. The ``mod_auth_mellon-diagnostics`` RPM contains the diagnostic
cd021e
   version of the Apache module
cd021e
   ``/usr/lib*/httpd/modules/mod_auth_mellon-diagnostics.so``
cd021e
cd021e
Because each version of the module has a different name both the
cd021e
normal and diagnostic modules can be installed simultaneously without
cd021e
conflict. But Apache will only load one of the two modules. Which
cd021e
module is loaded is controlled by the
cd021e
``/etc/httpd/conf.modules.d/10-auth_mellon.conf`` config file which
cd021e
has a line in it which looks like this::
cd021e
cd021e
    LoadModule auth_mellon_module modules/mod_auth_mellon.so
cd021e
cd021e
To load the diagnostics version of the module you need to change the
cd021e
module name so it looks like this::
cd021e
cd021e
    LoadModule auth_mellon_module modules/mod_auth_mellon-diagnostics.so
cd021e
cd021e
**Don't forget to change it back again when you're done debugging.**
cd021e
cd021e
You'll also need to enable the collection of diagnostic information,
cd021e
do this by adding this directive at the top of your Mellon conf.d
cd021e
config file or inside your virtual host config (diagnostics are per
cd021e
server instance)::
cd021e
cd021e
    MellonDiagnosticsEnable On
cd021e
cd021e
.. NOTE::
cd021e
   Some versions of the Mellon User Guide have a typo in the name of
cd021e
   this directive, it incorrectly uses ``MellonDiagnosticEnable``
cd021e
   instead of ``MellonDiagnosticsEnable``. The difference is
cd021e
   Diagnostics is plural.
cd021e
cd021e
The Apache ``error_log`` will contain a message indicating how it
cd021e
processed the ``MellonDiagnosticsEnable`` directive. If you loaded the
cd021e
standard module without diagnostics you'll see a message like this::
cd021e
cd021e
    MellonDiagnosticsEnable has no effect because Mellon was not
cd021e
    compiled with diagnostics enabled, use
cd021e
    ./configure --enable-diagnostics at build time to turn this
cd021e
    feature on.
cd021e
cd021e
If you've loaded the diagnostics version of the module you'll see a
cd021e
message in the ``error_log`` like this::
cd021e
cd021e
    mellon diagnostics enabled for virtual server *:443
cd021e
    (/etc/httpd/conf.d/my_server.conf:7)
cd021e
    ServerName=https://my_server.example.com:443, diagnostics
cd021e
    filename=logs/mellon_diagnostics