@@ -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) |
@@ -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> | |||
@@ -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> |
@@ -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 %} |