roles/apache: Support setting ServerTokens
The `apache_server_tokens` variable can now be set, which controls the value of the `ServerTokens` directive. If the variable is set, the `ServerTokens` directive will be added to the `00-servername.conf` file.
This commit is contained in:
@@ -10,3 +10,7 @@ ServerName {{ apache_server_name }}
|
|||||||
{% else %}
|
{% else %}
|
||||||
#ServerName www.example.com:80
|
#ServerName www.example.com:80
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if apache_server_tokens is defined %}
|
||||||
|
|
||||||
|
ServerTokens {{ apache_server_tokens }}
|
||||||
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user