Browse Source

FreeBSD: apache.mod_proxy_http

master
Alexander Weidinger 8 years ago
parent
commit
e1c55b9475
2 changed files with 16 additions and 0 deletions
  1. +3
    -0
      apache/files/FreeBSD/mod_proxy_http.conf.jinja
  2. +13
    -0
      apache/mod_proxy_http.sls

+ 3
- 0
apache/files/FreeBSD/mod_proxy_http.conf.jinja View File

@@ -0,0 +1,3 @@
{% from "apache/map.jinja" import apache with context %}

LoadModule proxy_http_module libexec/{{ apache.service }}/mod_proxy_http.so

+ 13
- 0
apache/mod_proxy_http.sls View File

@@ -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…
Cancel
Save