summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-10-08 22:27:37 +0200
committermh <mh@immerda.ch>2011-10-08 22:27:37 +0200
commit391dbaae8af22cf6f157aa4f741762a14cf0b483 (patch)
tree45f6b3b2d88b4acd133481e32cc7ef471b7ddc17 /templates
parent7991a88483f214d593a933ce97fc8a2adf44800e (diff)
add mod_fcgid stuff
Diffstat (limited to 'templates')
-rw-r--r--templates/vhosts/default.erb10
-rw-r--r--templates/vhosts/partials/std_override_options.erb2
2 files changed, 11 insertions, 1 deletions
diff --git a/templates/vhosts/default.erb b/templates/vhosts/default.erb
index 5ab1d26..02dcb5b 100644
--- a/templates/vhosts/default.erb
+++ b/templates/vhosts/default.erb
@@ -19,6 +19,16 @@ vhost_parts.each do |vhost_part|
AssignUserId <%= run_uid+" "+run_gid %>
</IfModule>
+ <% elsif run_mod.to_s == 'fcgid' -%>
+ <IfModule mod_fcgid.c>
+ SuexecUserGroup <%= run_uid+" "+run_gid %>
+ <% if passing_extension.to_s == 'php' -%>
+ PHP_Fix_Pathinfo_Enable 1
+ <% end -%>
+ FCGIWrapper /var/www/mod_fcgid-starters/<%= name %> .<%= passing_extension %>
+ AddHandler fcgid-script .<%= passing_extension %>
+ </IfModule>
+
<% end -%>
<% if ssl_mode == 'force' && vhost_part == :normal -%>
RewriteEngine On
diff --git a/templates/vhosts/partials/std_override_options.erb b/templates/vhosts/partials/std_override_options.erb
index d43b042..845fcc0 100644
--- a/templates/vhosts/partials/std_override_options.erb
+++ b/templates/vhosts/partials/std_override_options.erb
@@ -1,4 +1,4 @@
AllowOverride <%= allow_override %>
<% if options.to_s != 'absent' || do_includes.to_s == 'true' -%>
- Options <%- unless options.to_s == 'absent' then -%><%= options %><% end -%><% if do_includes.to_s == 'true' && !options.include?('+Includes') -%> +Includes<% end -%>
+ Options <%- unless options.to_s == 'absent' then -%><%= options %><% end -%><% if do_includes.to_s == 'true' && !options.include?('+Includes') -%> +Includes<% end -%><% if run_mode == 'fcgid' && !options.include?('+ExecCGI') -%>+ExecCGI<% end -%>
<% end -%> \ No newline at end of file