浏览代码

Merge pull request #117 from opdude/feature/remove-vhost

Added the ability to remove the vhost file from debian
master
Wolodja Wentland 8 年前
父节点
当前提交
c35f25e0cc
共有 2 个文件被更改,包括 21 次插入0 次删除
  1. +5
    -0
      README.rst
  2. +16
    -0
      apache/no_default.sls

+ 5
- 0
README.rst 查看文件

@@ -101,6 +101,11 @@ Enables and configures the Apache module mod_remoteip using data from Pillar. (D

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``
--------------------------


+ 16
- 0
apache/no_default.sls 查看文件

@@ -0,0 +1,16 @@
{% 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 %}

正在加载...
取消
保存