浏览代码

[+] debian apache2 needs to have conf enabled when making this change

tags/v0.37.4
Archie Brentano 7 年前
父节点
当前提交
f80a06260b
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. +9
    -1
      apache/mod_remoteip.sls

+ 9
- 1
apache/mod_remoteip.sls 查看文件

@@ -12,6 +12,15 @@ a2enmod remoteip:
- watch_in:
- module: apache-restart

a2enconf remoteip:
cmd.run:
- unless: ls /etc/apache2/mods-enabled/remoteip.load
- order: 255
- require:
- pkg: apache
- watch_in:
- module: apache-reload

/etc/apache2/conf-available/remoteip.conf:
file.managed:
- template: jinja
@@ -21,5 +30,4 @@ a2enmod remoteip:
- pkg: apache
- watch_in:
- service: apache

{% endif %}

正在加载...
取消
保存