Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[COOK-1356] Adding mod_status attribute for ExtendedStatus, defaults to 'off' #6

Merged
merged 1 commit into from
Jul 12, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
# mod_auth_openids
default['apache']['allowed_openids'] = Array.new

# mod_status ExtendedStatus, set to 'true' to enable
default['apache']['ext_status'] = false

# Prefork Attributes
default['apache']['prefork']['startservers'] = 16
default['apache']['prefork']['minspareservers'] = 16
Expand Down
12 changes: 11 additions & 1 deletion templates/default/mods/status.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,15 @@
Allow from localhost ip6-localhost
# Allow from .example.com
</Location>

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
<% if node['apache']['ext_status'] %>
ExtendedStatus On
<% else -%>
ExtendedStatus Off
<% end -%>
#
</IfModule>