- unless: ls {{ apache.moddir }}/fastcgi.load | - unless: ls {{ apache.moddir }}/fastcgi.load | ||||
- order: 225 | - order: 225 | ||||
- require: | - require: | ||||
- pkg: mod-fastcgi | |||||
- pkg: apache-config-modules-fastcgi-pkg | |||||
- watch_in: | - watch_in: | ||||
- module: apache-service-running-restart | - module: apache-service-running-restart | ||||
- require_in: | - require_in: |
- unless: ls {{ apache.moddir }}/php5.load || egrep "^APACHE_MODULES=" /etc/sysconfig/apache2 | grep ' php5' | - unless: ls {{ apache.moddir }}/php5.load || egrep "^APACHE_MODULES=" /etc/sysconfig/apache2 | grep ' php5' | ||||
- order: 225 | - order: 225 | ||||
- require: | - require: | ||||
- pkg: mod-php5 | |||||
- pkg: apache-config-modules-php5-pkg | |||||
- watch_in: | - watch_in: | ||||
- module: apache-service-running-restart | - module: apache-service-running-restart | ||||
- require_in: | - require_in: |
pkg.installed: | pkg.installed: | ||||
- name: {{ apache.pkg.mod_wsgi }} | - name: {{ apache.pkg.mod_wsgi }} | ||||
- require: | - require: | ||||
- pkg: apache | |||||
- pkg: apache-package-install-pkg-installed | |||||
- watch_in: | - watch_in: | ||||
- module: apache-service-running-restart | - module: apache-service-running-restart | ||||
- require_in: | - require_in: |
portsfile: /etc/apache2/ports.conf | portsfile: /etc/apache2/ports.conf | ||||
mod_wsgi: libapache2-mod-wsgi | mod_wsgi: libapache2-mod-wsgi | ||||
mod_php5: libapache2-mod-php5 | |||||
mod_php5: libapache2-mod-php | |||||
mod_perl2: libapache2-mod-perl2 | mod_perl2: libapache2-mod-perl2 | ||||
mod_fcgid: libapache2-mod-fcgid | mod_fcgid: libapache2-mod-fcgid | ||||
mod_upload_progress: libapache2-mod-upload-progress | mod_upload_progress: libapache2-mod-upload-progress |
- apache.config.modules.mod_actions | - apache.config.modules.mod_actions | ||||
- apache.config.modules.mod_cgi | - apache.config.modules.mod_cgi | ||||
- apache.config.modules.mod_dav_svn | - apache.config.modules.mod_dav_svn | ||||
- apache.config.modules.mod_fastcgi | |||||
# - apache.config.modules.mod_fastcgi | |||||
- apache.config.modules.mod_fcgid | - apache.config.modules.mod_fcgid | ||||
- apache.config.modules.mod_geoip | - apache.config.modules.mod_geoip | ||||
- apache.config.modules.mod_headers | - apache.config.modules.mod_headers | ||||
- apache.config.modules.mod_logio | |||||
# - apache.config.modules.mod_logio | |||||
- apache.config.modules.mod_mpm | - apache.config.modules.mod_mpm | ||||
- apache.config.modules.mod_pagespeed | - apache.config.modules.mod_pagespeed | ||||
- apache.config.modules.mod_perl2 | - apache.config.modules.mod_perl2 |
example2.com_ssl: | example2.com_ssl: | ||||
port: 443 | port: 443 | ||||
ServerName: example.com | ServerName: example.com | ||||
SSLCertificateFile: /path/to/ssl.crt | |||||
SSLCertificateKeyFile: /path/to/ssl.key | |||||
SSLCertificateChainFile: /path/to/ssl.ca.crt | |||||
# SSLCertificateFile: /path/to/ssl.crt | |||||
# SSLCertificateKeyFile: /path/to/ssl.key | |||||
# SSLCertificateChainFile: /path/to/ssl.ca.crt | |||||
# Use RedirectMatch Directive | # Use RedirectMatch Directive | ||||
redirectmatch.com: | redirectmatch.com: | ||||
modules: | modules: | ||||
enabled: # List modules to enable | enabled: # List modules to enable | ||||
- ssl | - ssl | ||||
- prefork | |||||
# - prefork | |||||
- rewrite | - rewrite | ||||
- proxy | - proxy | ||||
- proxy_ajp | - proxy_ajp | ||||
- headers | - headers | ||||
# geoip | # geoip | ||||
- status | - status | ||||
- logio | |||||
# - logio | |||||
- dav | - dav | ||||
- dav_fs | - dav_fs | ||||
- dav_lock | - dav_lock | ||||
- auth_digest | - auth_digest | ||||
- socache_shmcb | - socache_shmcb | ||||
- watchdog | |||||
# - watchdog | |||||
- xml2enc | - xml2enc | ||||
- ldap | - ldap | ||||
disabled: # List modules to disable | disabled: # List modules to disable |