Browse Source

FreeBSD: mod_cgi

tags/v0.37.4
Alexander Weidinger 8 years ago
parent
commit
6e880d0827
4 changed files with 33 additions and 2 deletions
  1. +6
    -1
      README.rst
  2. +1
    -1
      apache/files/FreeBSD/apache-2.4.config.jinja
  3. +8
    -0
      apache/files/FreeBSD/mod_cgi.conf.jinja
  4. +18
    -0
      apache/mod_cgi.sls

+ 6
- 1
README.rst View File

@@ -80,6 +80,11 @@ Installs and enables the mod_perl2 module (Debian and FreeBSD only)

Installs and enables the mod_php5 module

``apache.mod_cgi``
---------------------

Enables mod_cgi. (FreeBSD only)

``apache.mod_fcgid``
--------------------

@@ -114,7 +119,7 @@ Enables mod_socache_shmcb. (FreeBSD only)

Installs and enables the mod_ssl module (Debian, RedHat and FreeBSD only)

``mod_suexec``
``apache.mod_suexec``
---------------------

Enables mod_suexec. (FreeBSD only)

+ 1
- 1
apache/files/FreeBSD/apache-2.4.config.jinja View File

@@ -358,7 +358,7 @@ LogLevel warn
# client. The same rules about trailing "/" apply to ScriptAlias
# directives as to Alias.
#
ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
#ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"

</IfModule>


+ 8
- 0
apache/files/FreeBSD/mod_cgi.conf.jinja View File

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

<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/{{ apache.service }}/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/{{ apache.service }}/mod_cgi.so
</IfModule>

+ 18
- 0
apache/mod_cgi.sls View File

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

include:
- apache

{% if grains['os_family']=="FreeBSD" %}

{{ apache.modulesdir }}/040_mod_cgi.conf:
file.managed:
- source: salt://apache/files/{{ salt['grains.get']('os_family') }}/mod_cgi.conf.jinja
- mode: 644
- template: jinja
- require:
- pkg: apache
- watch_in:
- module: apache-restart

{% endif %}

Loading…
Cancel
Save