Support for xsendfile module
diff --git a/apache/map.jinja b/apache/map.jinja
index 79bc237..b697c8d 100644
--- a/apache/map.jinja
+++ b/apache/map.jinja
@@ -6,6 +6,7 @@
'mod_wsgi': 'libapache2-mod-wsgi',
'mod_php': 'libapache2-mod-php5',
'mod_perl': 'libapache2-mod-perl2',
+ 'mod_xsendfile': 'libapache2-mod-xsendfile',
'vhost_dir': '/etc/apache2/sites-available',
'conf_dir': '/etc/apache2/conf.d',
'conf_ext': '.conf',
diff --git a/apache/server/service.sls b/apache/server/service.sls
index 96dadcc..dc49394 100644
--- a/apache/server/service.sls
+++ b/apache/server/service.sls
@@ -49,6 +49,16 @@
{%- endif %}
+{%- if module == 'xsendfile' %}
+
+apache_xsendfile_package:
+ pkg.installed:
+ - name: {{ server.mod_xsendfile }}
+ - require:
+ - pkg: apache_packages
+
+{%- endif %}
+
apache_{{ module }}_enable:
cmd.run:
- name: "a2enmod {{ module }}"