Added the ability to remove the vhost file from debiantags/v0.37.4
Replace default vhost with own version. By default, it's 503 code. (Debian Only) | Replace default vhost with own version. By default, it's 503 code. (Debian Only) | ||||
``apache.no_default_vhost`` | |||||
-------------------------- | |||||
Remove the default vhost. (Debian Only) | |||||
``apache.vhosts.standard`` | ``apache.vhosts.standard`` | ||||
-------------------------- | -------------------------- | ||||
{% if grains['os_family']=="Debian" %} | |||||
{% from "apache/map.jinja" import apache with context %} | |||||
include: | |||||
- apache | |||||
apache_no-default-vhost: | |||||
file.absent: | |||||
- name: {{ apache.vhostdir }}/000-default.conf | |||||
- require: | |||||
- pkg: apache | |||||
- watch_in: | |||||
- module: apache-reload | |||||
{% endif %} |