Apache Module mod_info
Allow access from server itself Allow from 127.0.0.1
Additionally, allow access from local workstation Allow from 192.168.1.17
, add the following to your mod_infoapache2.conf
You may wish to use
Once configured, the server information is obtained by accessing http://your.host.example.com/server-info
In particular, this module can leak sensitive information from the configuration directives of other Apache modules such as system paths, usernames/passwords, database names, etc. Therefore, this module should only be used in a controlled environment and always with caution.
You will probably want to use
to limit access to your server configuration information.modauthzhost
By default, the server information includes a list of all enabled modules, and for each module, a description of the directives understood by that module, the hooks implemented by that module, and the relevant directives from the current configuration.
Other views of the configuration information are available by appending a query to the server-info
are
evaluated and environment varialbles are replaced. However it does
not represent the final state of the configuration. In particular,
it does not represent the merging or overriding that may happen
for repeated directives.
This is roughly equivalent to the ?config
are not listed, but the included configuration directives are..htaccess
files are
not listed (since they do not form part of the permanent server
configuration).
cannot figure out the line number for the closing
AddModuleInfo moddeflate.c 'See \ http://httpd.apache.org/docs/2.4/mod/mod_deflate.html'
Modules | Directives | FAQ | Glossary | Sitemap
Apache HTTP Server Version 2.4
Apache Module mod_info
Available Languages: en | fr | ja | ko
Security Issues
Once mod_info is loaded into the server, its handler capability is available in all configuration files, including per-directory files (e.g., .htaccess). This may have security-related ramifications for your site.
Dumping the configuration on startup
If the config define -DDUMP_CONFIG is set, mod_info will dump the pre-parsed configuration to stdout during server startup. Pre-parsed means that directives like
Known Limitations
mod_info provides its information by reading the parsed configuration, rather than reading the original configuration file. There are a few limitations as a result of the way the parsed configuration tree is created:
AddModuleInfo Directive
This allows the content of string to be shown as HTML interpreted, Additional Information for the module module-name. Example: