- watch_in: | - watch_in: | ||||
- service: apache | - service: apache | ||||
{% endif %} | {% endif %} | ||||
{% if grains['os_family']=="Suse" %} | |||||
/etc/apache2/sysconfig.d/global.conf: | |||||
file.managed: | |||||
- template: jinja | |||||
- source: | |||||
- salt://apache/files/{{ salt['grains.get']('os_family') }}/global.config.jinja | |||||
- require: | |||||
- pkg: apache | |||||
- watch_in: | |||||
- service: apache | |||||
- context: | |||||
apache: {{ apache }} | |||||
{% endif %} |
#EnableMMAP off | #EnableMMAP off | ||||
EnableSendfile on | EnableSendfile on | ||||
{%- for directive, dvalue in salt['pillar.get']('apache:global', {}).items() %} | |||||
{{ directive }} {{ dvalue }} | |||||
{%- endfor %} | |||||
# Supplemental configuration | # Supplemental configuration | ||||
# | # | ||||
# Load config files in the "/etc/httpd/conf.d" directory, if any. | # Load config files in the "/etc/httpd/conf.d" directory, if any. |
#EnableMMAP off | #EnableMMAP off | ||||
EnableSendfile on | EnableSendfile on | ||||
{%- for directive, dvalue in salt['pillar.get']('apache:global', {}).items() %} | |||||
{{ directive }} {{ dvalue }} | |||||
{%- endfor %} | |||||
# Supplemental configuration | # Supplemental configuration | ||||
# | # | ||||
# Load config files in the "/etc/httpd/conf.d" directory, if any. | # Load config files in the "/etc/httpd/conf.d" directory, if any. |
{%- for directive, dvalue in salt['pillar.get']('apache:global', {}).items() %} | |||||
{{ directive }} {{ dvalue }} | |||||
{%- endfor %} | |||||
# ``apache.mod_wsgi`` formula additional configuration: | # ``apache.mod_wsgi`` formula additional configuration: | ||||
mod_wsgi: mod_wsgi | mod_wsgi: mod_wsgi | ||||
global: | |||||
# global apache directives | |||||
AllowEncodedSlashes: "On" | |||||
# ``apache.vhosts`` formula additional configuration: | # ``apache.vhosts`` formula additional configuration: | ||||
sites: | sites: | ||||
example.net: | example.net: |