mirror of
https://github.com/saltstack-formulas/apache-formula.git
synced 2025-04-17 10:10:26 +00:00
RedHat fixes: change default vhostdir to redhat official default /etc/httpd/vhosts.d, add state for ensuring that vhostdir exists, include vhosts.d/*.conf in httpd.conf
This commit is contained in:
parent
0d7b149fd5
commit
b6fe515ed8
3 changed files with 9 additions and 1 deletions
|
@ -13,6 +13,13 @@ include:
|
|||
- watch_in:
|
||||
- service: apache
|
||||
|
||||
{{ apache.vhostdir }}:
|
||||
file.directory:
|
||||
- require:
|
||||
- pkg: apache
|
||||
- watch_in:
|
||||
- service: apache
|
||||
|
||||
{% if grains['os_family']=="Debian" %}
|
||||
/etc/apache2/envvars:
|
||||
file.managed:
|
||||
|
|
|
@ -354,3 +354,4 @@ EnableSendfile on
|
|||
#
|
||||
# Load config files in the "/etc/httpd/conf.d" directory, if any.
|
||||
IncludeOptional conf.d/*.conf
|
||||
IncludeOptional vhosts.d/*.conf
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
'mod_wsgi': 'mod_wsgi',
|
||||
'mod_php5': 'php',
|
||||
|
||||
'vhostdir': '/etc/httpd/conf.d',
|
||||
'vhostdir': '/etc/httpd/vhosts.d',
|
||||
'confdir': '/etc/httpd/conf.d',
|
||||
'confext': '.conf',
|
||||
'default_site': 'default',
|
||||
|
|
Loading…
Add table
Reference in a new issue