FreeBSD: mod_cgi
This commit is contained in:
parent
e1c55b9475
commit
6e880d0827
@ -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>
|
||||
|
||||
|
8
apache/files/FreeBSD/mod_cgi.conf.jinja
Normal file
8
apache/files/FreeBSD/mod_cgi.conf.jinja
Normal 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
apache/mod_cgi.sls
Normal file
18
apache/mod_cgi.sls
Normal 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…
Reference in New Issue
Block a user