Skip to content

Commit

Permalink
Add configuration options for ServerTokens and ServerSignature
Browse files Browse the repository at this point in the history
  • Loading branch information
xstasi committed Sep 2, 2013
1 parent 4907ee0 commit a82af55
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@ Changes the location of the directory Apache log files are placed in. Defaut is

Changes the name of the file containing Apache ports configuration. Default is `${conf_dir}/ports.conf`.

#####`server_tokens`

Controls how much information Apache sends to the browser about itself and the operating system. See Apache documentation for 'ServerTokens'. Defaults to 'OS'.

#####`server_signature`

Allows the configuration of a trailing footer line under server-generated documents. See Apache documentation for 'ServerSignature'. Defaults to 'On'.

####Class: `apache::default_mods`

Installs default Apache modules based on what OS you are running
Expand Down Expand Up @@ -525,7 +533,6 @@ Sets the order of processing `Allow` and `Deny` statements as per [Apache core d
}
```


######`auth_type`

Sets the value for `AuthType` as per the [Apache AuthType
Expand Down
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
$keepalive_timeout = $apache::params::keepalive_timeout,
$logroot = $apache::params::logroot,
$ports_file = $apache::params::ports_file,
$server_tokens = 'OS',
$server_signature = 'On',
) inherits apache::params {

package { 'httpd':
Expand Down
4 changes: 2 additions & 2 deletions templates/httpd.conf.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Security
ServerTokens OS
ServerSignature On
ServerTokens <%= @server_tokens %>
ServerSignature <%= @server_signature %>
TraceEnable Off

ServerName "<%= @servername %>"
Expand Down

0 comments on commit a82af55

Please sign in to comment.