Browse Source

FreeBSD: mod_proxy

master
Alexander Weidinger 8 years ago
parent
commit
bc81c6ab43
4 changed files with 20 additions and 3 deletions
  1. +1
    -1
      README.rst
  2. +3
    -1
      apache/files/FreeBSD/mod_php5.conf.jinja
  3. +3
    -0
      apache/files/FreeBSD/mod_proxy.conf.jinja
  4. +13
    -1
      apache/mod_proxy.sls

+ 1
- 1
README.rst View File

``apache.mod_proxy`` ``apache.mod_proxy``
------------------- -------------------


Enables the Apache module mod_proxy. (Debian only)
Enables the Apache module mod_proxy. (Debian and FreeBSD only)


``apache.mod_proxy_http`` ``apache.mod_proxy_http``
------------------------- -------------------------

+ 3
- 1
apache/files/FreeBSD/mod_php5.conf.jinja View File

LoadModule php5_module /usr/local/libexec/apache24/libphp5.so
{% from "apache/map.jinja" import apache with context %}

LoadModule php5_module /usr/local/libexec/{{ apache.service }}/libphp5.so


DirectoryIndex index.html index.php DirectoryIndex index.html index.php



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

{% from "apache/map.jinja" import apache with context %}

LoadModule proxy_module libexec/{{ apache.service }}/mod_proxy.so

+ 13
- 1
apache/mod_proxy.sls View File

{% if grains['os_family']=="Debian" %}
{% from "apache/map.jinja" import apache with context %}


include: include:
- apache - apache


{% if grains['os_family']=="Debian" %}
a2enmod mod_proxy: a2enmod mod_proxy:
cmd.run: cmd.run:
- name: a2enmod proxy - name: a2enmod proxy
- watch_in: - watch_in:
- module: apache-restart - module: apache-restart


{% elif grains['os_family']=="FreeBSD" %}
{{ apache.modulesdir }}/040_mod_proxy.conf:
file.managed:
- source: salt://apache/files/{{ salt['grains.get']('os_family') }}/mod_proxy.conf.jinja
- mode: 644
- template: jinja
- require:
- pkg: apache
- watch_in:
- module: apache-restart

{% endif %} {% endif %}

Loading…
Cancel
Save