Browse Source

Merge pull request #290 from SuperTux88/fix-modules-enable

Fix modules enable
tags/v1.0.4
N 4 years ago
parent
commit
9a385b4fcd
No account linked to committer's email address
5 changed files with 4 additions and 6 deletions
  1. +1
    -1
      apache/config/modules/install.sls
  2. +1
    -1
      apache/config/vhosts/proxy.tmpl
  3. +1
    -1
      apache/config/vhosts/redirect.tmpl
  4. +1
    -1
      apache/osfamilymap.yaml
  5. +0
    -2
      test/salt/pillar/modules.sls

+ 1
- 1
apache/config/modules/install.sls View File



cmd.run: cmd.run:
- name: a2enmod -f {{ module }} - name: a2enmod -f {{ module }}
- onlyif: ls {{ apache.moddir }}/{{ module }}.load
- unless: ls {{ apache.moddir }}/{{ module }}.load


{% elif grains.os_family in ('RedHat', 'Arch') %} {% elif grains.os_family in ('RedHat', 'Arch') %}



+ 1
- 1
apache/config/vhosts/proxy.tmpl View File



'LogLevel': site.get('LogLevel', 'warn'), 'LogLevel': site.get('LogLevel', 'warn'),
'ErrorLog': site.get('ErrorLog', '{0}/{1}-error.log'.format(map.logdir, sitename)), 'ErrorLog': site.get('ErrorLog', '{0}/{1}-error.log'.format(map.logdir, sitename)),
'LogFormat': site.get('LogFormat', '"%a %l %u %t \\"%r\\" %>s %O \\"%{Referer}i\\" \\"%{User-Agent}i\\""'),
'LogFormat': site.get('LogFormat', '"%a %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\""'),
'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)), 'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)),


'ProxyRequests': site.get('ProxyRequests', 'Off'), 'ProxyRequests': site.get('ProxyRequests', 'Off'),

+ 1
- 1
apache/config/vhosts/redirect.tmpl View File



'LogLevel': site.get('LogLevel', 'warn'), 'LogLevel': site.get('LogLevel', 'warn'),
'ErrorLog': site.get('ErrorLog', '{0}/{1}-error.log'.format(map.logdir, sitename)), 'ErrorLog': site.get('ErrorLog', '{0}/{1}-error.log'.format(map.logdir, sitename)),
'LogFormat': site.get('LogFormat', '"%h %l %u %t \\\"%r\\\" %>s %O"'),
'LogFormat': site.get('LogFormat', '"%h %l %u %t \\\"%r\\\" %>s %b"'),
'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)), 'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)),


'RedirectSource': site.get('RedirectSource', '/'), 'RedirectSource': site.get('RedirectSource', '/'),

+ 1
- 1
apache/osfamilymap.yaml View File

logdir: /var/log/apache2 logdir: /var/log/apache2
logrotatedir: /etc/logrotate.d/apache2 logrotatedir: /etc/logrotate.d/apache2
wwwdir: /srv wwwdir: /srv
moddir: /etc/apache2/mods-available
moddir: /etc/apache2/mods-enabled
sitesdir: /etc/apache2/sites-enabled sitesdir: /etc/apache2/sites-enabled


RedHat: RedHat:

+ 0
- 2
test/salt/pillar/modules.sls View File

modules: modules:
enabled: # List modules to enable enabled: # List modules to enable
- ssl - ssl
- prefork
- rewrite - rewrite
- proxy - proxy
- proxy_ajp - proxy_ajp
- headers - headers
# geoip # geoip
- status - status
- logio
- dav - dav
- dav_fs - dav_fs
- dav_lock - dav_lock

Loading…
Cancel
Save