mirror of
https://github.com/saltstack-formulas/apache-formula.git
synced 2025-04-17 10:10:26 +00:00
Proper disabling of the default vhost
Removing the file /etc/apache2/sites-available/000-default.conf leads to an error when Apache is restarted. So the symlink in /etc/apache2/sites-enabled/ should be removed, the actual file can stay.
This commit is contained in:
parent
c9344cf81c
commit
df5edcd8a2
1 changed files with 5 additions and 4 deletions
|
@ -5,12 +5,13 @@
|
|||
include:
|
||||
- apache
|
||||
|
||||
apache_no-default-vhost:
|
||||
file.absent:
|
||||
- name: {{ apache.vhostdir }}/000-default.conf
|
||||
a2dissite 000-default.conf:
|
||||
cmd:
|
||||
- run
|
||||
- unless: test ! -f /etc/apache2/sites-enabled/000-default.conf
|
||||
- require:
|
||||
- pkg: apache
|
||||
- watch_in:
|
||||
- module: apache-reload
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue