![Philipp Marmet](/assets/img/avatar_default.png)
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.
18 lines
326 B
Plaintext
18 lines
326 B
Plaintext
{% if grains['os_family']=="Debian" %}
|
|
|
|
{% from "apache/map.jinja" import apache with context %}
|
|
|
|
include:
|
|
- apache
|
|
|
|
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 %}
|