1 |
<IfDefine INFO> |
2 |
<IfModule info_module> |
3 |
<IfModule status_module> |
4 |
# Get information about the requests being processed by the server |
5 |
# and the configuration of the server. |
6 |
|
7 |
# Required modules: mod_status (for the server-status handler), |
8 |
# mod_info (for the server-info handler) |
9 |
|
10 |
# Allow server status reports generated by mod_status, |
11 |
# with the URL of http://servername/server-status |
12 |
# Change the ".example.com" to match your domain to enable. |
13 |
|
14 |
<Location /server-status> |
15 |
SetHandler server-status |
16 |
Order deny,allow |
17 |
Deny from all |
18 |
Allow from localhost |
19 |
</Location> |
20 |
|
21 |
# ExtendedStatus controls whether Apache will generate "full" status |
22 |
# information (ExtendedStatus On) or just basic information (ExtendedStatus |
23 |
# Off) when the "server-status" handler is called. The default is Off. |
24 |
ExtendedStatus On |
25 |
|
26 |
# Allow remote server configuration reports, with the URL of |
27 |
# http://servername/server-info (requires that mod_info.c be loaded). |
28 |
# Change the ".example.com" to match your domain to enable. |
29 |
<Location /server-info> |
30 |
SetHandler server-info |
31 |
Order deny,allow |
32 |
Deny from all |
33 |
Allow from localhost |
34 |
</Location> |
35 |
</IfModule> |
36 |
</IfModule> |
37 |
</IfDefine> |