mirror of
https://github.com/saltstack-formulas/apache-formula.git
synced 2025-04-17 10:10:26 +00:00
feat(redhat/apache-2.x.config.jinja): allow override of default_charset
The current Red Hat config allows to set DefaultCharset to a value. In certain situations it is necessary to leave it unconfigured thouguh. Make the content optional, if the value of apache.default_charset is None, the item is skipped. Otherwise it defaults to UTF-8.
This commit is contained in:
parent
78bd21ad62
commit
648f589cc3
2 changed files with 10 additions and 2 deletions
|
@ -387,7 +387,11 @@ LogLevel warn
|
|||
# in HTML content to override this choice, comment out this
|
||||
# directive:
|
||||
#
|
||||
AddDefaultCharset UTF-8
|
||||
{%- if apache.get('default_charset', False) is none %}
|
||||
# AddDefaultCharset UTF-8
|
||||
{%- else %}
|
||||
AddDefaultCharset {{ apache.get('default_charset', 'UTF-8') }}
|
||||
{%- endif %}
|
||||
|
||||
<IfModule mime_magic_module>
|
||||
#
|
||||
|
|
|
@ -348,7 +348,11 @@ LogLevel warn
|
|||
# in HTML content to override this choice, comment out this
|
||||
# directive:
|
||||
#
|
||||
AddDefaultCharset {{ apache.default_charset }}
|
||||
{%- if apache.get('default_charset', False) is none %}
|
||||
# AddDefaultCharset UTF-8
|
||||
{%- else %}
|
||||
AddDefaultCharset {{ apache.get('default_charset', 'UTF-8') }}
|
||||
{%- endif %}
|
||||
|
||||
<IfModule mime_magic_module>
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue