FreeBSD: apache.mod_proxy_http
This commit is contained in:
parent
0590e43973
commit
e1c55b9475
3
apache/files/FreeBSD/mod_proxy_http.conf.jinja
Normal file
3
apache/files/FreeBSD/mod_proxy_http.conf.jinja
Normal file
@ -0,0 +1,3 @@
|
||||
{% from "apache/map.jinja" import apache with context %}
|
||||
|
||||
LoadModule proxy_http_module libexec/{{ apache.service }}/mod_proxy_http.so
|
@ -1,3 +1,5 @@
|
||||
{% from "apache/map.jinja" import apache with context %}
|
||||
|
||||
{% if grains['os_family']=="Debian" %}
|
||||
|
||||
include:
|
||||
@ -14,4 +16,15 @@ a2enmod proxy_http:
|
||||
- watch_in:
|
||||
- module: apache-restart
|
||||
|
||||
{% elif grains['os_family']=="FreeBSD" %}
|
||||
{{ apache.modulesdir }}/040_mod_proxy_http.conf:
|
||||
file.managed:
|
||||
- source: salt://apache/files/{{ salt['grains.get']('os_family') }}/mod_proxy_http.conf.jinja
|
||||
- mode: 644
|
||||
- template: jinja
|
||||
- require:
|
||||
- pkg: apache
|
||||
- watch_in:
|
||||
- module: apache-restart
|
||||
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user