- watch_in: | - watch_in: | ||||
- service: apache | - service: apache | ||||
{{ apache.vhostdir }}: | |||||
file.directory: | |||||
- require: | |||||
- pkg: apache | |||||
- watch_in: | |||||
- service: apache | |||||
{% if grains['os_family']=="Debian" %} | {% if grains['os_family']=="Debian" %} | ||||
/etc/apache2/envvars: | /etc/apache2/envvars: | ||||
file.managed: | file.managed: |
# | # | ||||
# Load config files in the "/etc/httpd/conf.d" directory, if any. | # Load config files in the "/etc/httpd/conf.d" directory, if any. | ||||
IncludeOptional conf.d/*.conf | IncludeOptional conf.d/*.conf | ||||
IncludeOptional vhosts.d/*.conf |
'mod_wsgi': 'mod_wsgi', | 'mod_wsgi': 'mod_wsgi', | ||||
'mod_php5': 'php', | 'mod_php5': 'php', | ||||
'vhostdir': '/etc/httpd/conf.d', | |||||
'vhostdir': '/etc/httpd/vhosts.d', | |||||
'confdir': '/etc/httpd/conf.d', | 'confdir': '/etc/httpd/conf.d', | ||||
'confext': '.conf', | 'confext': '.conf', | ||||
'default_site': 'default', | 'default_site': 'default', |