X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=docs%2Fmanual%2Fmod%2Fmod_info.html.en;h=d1616be89d5470026235b23234b90ece8d2054a8;hb=f0348fc28341bfdcce16cbf8c7d736de12ff85da;hp=89e408c183bd7c1913bbcb3efceb6243f406b0b1;hpb=4b8588c85994bc1f6bd6588c9b8e4474d5567f57;p=apache diff --git a/docs/manual/mod/mod_info.html.en b/docs/manual/mod/mod_info.html.en index 89e408c183..d1616be89d 100644 --- a/docs/manual/mod/mod_info.html.en +++ b/docs/manual/mod/mod_info.html.en @@ -1,63 +1,231 @@ -
Apache HTTP Server Version 2.0
Apache Module mod_info
Description: - Provides a comprehensive overview of the server -configuration Status: - Extension Module Identifier: - info_module Summary
+ --> +mod_info - Apache HTTP Server Version 2.5 + + + + -To configure
+mod_info
, add the following to your + +++ + + +Apache HTTP Server Version 2.5
++++Apache Module mod_info
+ ++
+ Description: Provides a comprehensive overview of the server +configuration + Status: Extension + Module Identifier: info_module Source File: mod_info.c Summary
+ +To configure
-mod_info
, add the following to yourhttpd.conf
file.+
-<Location /server-info>
-SetHandler server-info
-</Location>
-<Location "/server-info"> + SetHandler server-info +</Location>+ + +You may wish to use
+ +mod_authz_host
inside the +<Location>
+ directive to limit access to your server configuration + information:<Location "/server-info"> + SetHandler server-info + Require host example.com +</Location>-You may wish to add a -
<Limit>
- clause inside the -<location>
- directive to limit access to your server configuration - information.Once configured, the server information is obtained by - accessing
- -http://your.host.dom/server-info
-
- Note that the configuration files are read by the - module at run-time, and therefore the display may - not reflect the running server's active - configuration if the files have been changed since the server - was last reloaded. Also, the configuration files must be - readable by the user as which the server is running (see the - User
directive), or - else the directive settings will not be listed. - -It should also be noted that if -
-mod_info
is compiled 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.Directives
AddModuleInfo Directive
-
Description: - Allows additional information to be added to the module -information displayed by the server-info handler Syntax: - AddModuleInfo module-name string Context: - server config, virtual -host Status: - Extension Module: - mod_info Compatibility: - Apache 1.3 and above This allows the content of string to be shown as + accessing
+http://your.host.example.com/server-info
+ +Topics
++
- +
Security Issues
- +
Selecting the information shown
- +
Dumping the configuration on startup
- +
Known Limitations
Directives
++
+- +
AddModuleInfo
Bugfix checklist
See also
+++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.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
+ +mod_authz_host
+ to limit access to your server configuration information.+Access control
<Location "/server-info"> + SetHandler server-info + # Allow access from server itself + Require ip 127.0.0.1 + + # Additionally, allow access from local workstation + Require ip 192.168.1.17 +</Location>+++Selecting the information shown
+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
request. For + example,http://your.host.example.com/server-info?config
+ will show all configuration directives.+
+- +
?<module-name>
- Only information relevant to the named module
+- +
?config
- Just the configuration directives, not sorted by module
+- +
?hooks
- Only the list of Hooks each module is attached to
+- +
?list
- Only a simple list of enabled modules
+- +
?server
- Only the basic server information
+- +
?providers
- List the providers that are available on your server
+++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.httpd -DDUMP_CONFIG -k start+ + +Pre-parsed means that directives like +
+ +<IfDefine>
and +<IfModule>
are + evaluated and environment variables 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
query.++ +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:+
+- Directives which are executed immediately rather than being + stored in the parsed configuration are not listed. These include +
+ServerRoot
, +LoadModule
, and +LoadFile
.- Directives which control the configuration file itself, such as +
+Include
, +<IfModule>
and +<IfDefine>
are not + listed, but the included configuration directives are.- Comments are not listed. (This may be considered a feature.)
+- Configuration directives from
+.htaccess
files are + not listed (since they do not form part of the permanent server + configuration).- Container directives such as +
+<Directory>
+ are listed normally, butmod_info
cannot figure + out the line number for the closing +</Directory>
.- Directives generated by third party modules such as mod_perl + might not be listed.
++AddModuleInfo Directive
++
++ Description: Adds additional information to the module +information displayed by the server-info handler + Syntax: AddModuleInfo module-name string
+ Context: server config, virtual host + Status: Extension + Module: mod_info This allows the content of string to be shown as HTML interpreted, Additional Information for - the module module-name. Example:
+ the module module-name. Example: + +AddModuleInfo mod_deflate.c 'See <a \ + href="http://httpd.apache.org/docs/trunk/mod/mod_deflate.html">\ + http://httpd.apache.org/docs/trunk/mod/mod_deflate.html</a>'+ --
-AddModuleInfo mod_auth.c 'See <A HREF="http://www.apache.org/docs/mod/mod_auth.html">http://www.apache.org/docs/mod/mod_auth.html</A>' -
Apache HTTP Server Version 2.0
\ No newline at end of file +
+Comments
Notice:+
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.